diff --git a/src/list.rs b/src/list.rs index ad8ad449..22d1ef7a 100644 --- a/src/list.rs +++ b/src/list.rs @@ -1,5 +1,3 @@ -use std::usize; - use crate::{float::floating_window, theme::*}; use crossterm::event::{KeyCode, KeyEvent, KeyEventKind}; use ego_tree::{tree, NodeId}; @@ -241,7 +239,7 @@ impl CustomList { // Get the selected command if let Some(selected_command) = self.get_selected_command() { // If command is a folder, we don't display a preview - if selected_command == "" { + if selected_command.is_empty() { return; }