Style: !is_someis_none

This commit is contained in:
Ridan Vandenbergh 2025-11-18 23:02:21 +01:00
parent 49f93a9c3e
commit 89724ea525
No known key found for this signature in database

View file

@ -147,7 +147,7 @@ impl IconSearch<Initial> {
.flatten() // remove Err entries
.filter_map(|entry| Some((entry.file_type().ok()?, entry))) // get file type for each entry and skip if fail
.partition::<Vec<_>, _>(|(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!