diff --git a/src/search.rs b/src/search.rs index 14840df..a5c22b6 100644 --- a/src/search.rs +++ b/src/search.rs @@ -147,7 +147,7 @@ impl IconSearch { .flatten() // remove Err entries .filter_map(|entry| Some((entry.file_type().ok()?, entry))) // get file type for each entry and skip if fail .partition::, _>(|(ft, entry)| { - ft.is_dir() || (!entry.path().extension().is_some() && ft.is_symlink()) + ft.is_dir() || (entry.path().extension().is_none() && ft.is_symlink()) }); // icons at the top-level in a base_dir don't belong to a theme, but must still be able to be found!