From 79a622ae02f637ba6994b8e3c3e569d0256e95e3 Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Fri, 19 Jul 2024 16:01:44 +0200 Subject: [PATCH] legacy_numeric_constants --- src/list.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }