From bc604780abc08b8b55922d7a4db13fe1ef82fe18 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Wed, 31 Jul 2024 01:19:07 +0100 Subject: [PATCH] Fix bad comma --- src/list.rs | 1 - src/main.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/list.rs b/src/list.rs index 193092a5..92a81a8e 100644 --- a/src/list.rs +++ b/src/list.rs @@ -130,7 +130,6 @@ impl CustomList { /// Draw our custom widget to the frame pub fn draw(&mut self, frame: &mut Frame, area: Rect, state: &AppState) { - let item_list: Vec = if self.filter_query.is_empty() { let mut items: Vec = vec![]; // If we are not at the root of our filesystem tree, we need to add `..` path, to be able diff --git a/src/main.rs b/src/main.rs index e222c3ca..3d82461c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -157,7 +157,7 @@ fn run(terminal: &mut Terminal, state: &AppState) -> io::Result<( KeyCode::Char(c) => { search_input.push(c); custom_list.filter(search_input.clone()); - }, + } KeyCode::Backspace => { search_input.pop(); custom_list.filter(search_input.clone());