diff options
Diffstat (limited to 'src/components/syntax_text.rs')
-rw-r--r-- | src/components/syntax_text.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/syntax_text.rs b/src/components/syntax_text.rs index f031fdb6..9da5d2cc 100644 --- a/src/components/syntax_text.rs +++ b/src/components/syntax_text.rs @@ -23,7 +23,6 @@ use crossterm::event::Event; use filetreelist::MoveSelection; use itertools::Either; use ratatui::{ - backend::Backend, layout::Rect, text::Text, widgets::{Block, Borders, Wrap}, @@ -184,11 +183,7 @@ impl SyntaxTextComponent { } impl DrawableComponent for SyntaxTextComponent { - fn draw<B: Backend>( - &self, - f: &mut Frame<B>, - area: Rect, - ) -> Result<()> { + fn draw(&self, f: &mut Frame, area: Rect) -> Result<()> { let text = self.current_file.as_ref().map_or_else( || Text::from(""), |(_, content)| match content { |