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());