diff options
Diffstat (limited to 'src/popups/log_search.rs')
-rw-r--r-- | src/popups/log_search.rs | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/popups/log_search.rs b/src/popups/log_search.rs index 7179a348..e7e868ad 100644 --- a/src/popups/log_search.rs +++ b/src/popups/log_search.rs @@ -17,7 +17,6 @@ use asyncgit::sync::{ use crossterm::event::Event; use easy_cast::Cast; use ratatui::{ - backend::Backend, layout::{ Alignment, Constraint, Direction, Layout, Margin, Rect, }, @@ -352,9 +351,9 @@ impl LogSearchPopupPopup { .enabled(matches!(self.selection, Selection::EnterText)); } - fn draw_search_mode<B: Backend>( + fn draw_search_mode( &self, - f: &mut Frame<B>, + f: &mut Frame, area: Rect, ) -> Result<()> { const SIZE: (u16, u16) = (60, 10); @@ -399,9 +398,9 @@ impl LogSearchPopupPopup { Ok(()) } - fn draw_commit_sha_mode<B: Backend>( + fn draw_commit_sha_mode( &self, - f: &mut Frame<B>, + f: &mut Frame, area: Rect, ) -> Result<()> { const SIZE: (u16, u16) = (60, 3); @@ -445,7 +444,7 @@ impl LogSearchPopupPopup { Ok(()) } - fn draw_invalid_sha<B: Backend>(&self, f: &mut Frame<B>) { + fn draw_invalid_sha(&self, f: &mut Frame) { let msg_length: u16 = POPUP_COMMIT_SHA_INVALID.len().cast(); let w = Paragraph::new(POPUP_COMMIT_SHA_INVALID) .style(self.theme.text_danger()); @@ -525,11 +524,7 @@ impl LogSearchPopupPopup { } impl DrawableComponent for LogSearchPopupPopup { - fn draw<B: Backend>( - &self, - f: &mut Frame<B>, - area: Rect, - ) -> Result<()> { + fn draw(&self, f: &mut Frame, area: Rect) -> Result<()> { if self.is_visible() { match self.mode { PopupMode::Search => { |