summaryrefslogtreecommitdiffstats
path: root/src/popups/submodules.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/popups/submodules.rs')
-rw-r--r--src/popups/submodules.rs17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/popups/submodules.rs b/src/popups/submodules.rs
index 6cdd3fa7..8a758a49 100644
--- a/src/popups/submodules.rs
+++ b/src/popups/submodules.rs
@@ -17,7 +17,6 @@ use asyncgit::sync::{
};
use crossterm::event::Event;
use ratatui::{
- backend::Backend,
layout::{
Alignment, Constraint, Direction, Layout, Margin, Rect,
},
@@ -45,11 +44,7 @@ pub struct SubmodulesListPopup {
}
impl DrawableComponent for SubmodulesListPopup {
- fn draw<B: Backend>(
- &self,
- f: &mut Frame<B>,
- rect: Rect,
- ) -> Result<()> {
+ fn draw(&self, f: &mut Frame, rect: Rect) -> Result<()> {
if self.is_visible() {
const PERCENT_SIZE: Size = Size::new(80, 80);
const MIN_SIZE: Size = Size::new(60, 30);
@@ -473,11 +468,7 @@ impl SubmodulesListPopup {
Text::from(spans)
}
- fn draw_list<B: Backend>(
- &self,
- f: &mut Frame<B>,
- r: Rect,
- ) -> Result<()> {
+ fn draw_list(&self, f: &mut Frame, r: Rect) -> Result<()> {
let height_in_lines = r.height as usize;
self.current_height.set(height_in_lines.try_into()?);
@@ -507,7 +498,7 @@ impl SubmodulesListPopup {
Ok(())
}
- fn draw_info<B: Backend>(&self, f: &mut Frame<B>, r: Rect) {
+ fn draw_info(&self, f: &mut Frame, r: Rect) {
f.render_widget(
Paragraph::new(self.get_info_text(&self.theme))
.alignment(Alignment::Left),
@@ -515,7 +506,7 @@ impl SubmodulesListPopup {
);
}
- fn draw_local_info<B: Backend>(&self, f: &mut Frame<B>, r: Rect) {
+ fn draw_local_info(&self, f: &mut Frame, r: Rect) {
f.render_widget(
Paragraph::new(self.get_local_info_text(&self.theme))
.block(Block::default().borders(Borders::TOP))