mirror of
https://github.com/danbulant/icon
synced 2026-06-24 17:11:58 +00:00
Style: !is_some → is_none
This commit is contained in:
parent
49f93a9c3e
commit
89724ea525
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ impl IconSearch<Initial> {
|
||||||
.flatten() // remove Err entries
|
.flatten() // remove Err entries
|
||||||
.filter_map(|entry| Some((entry.file_type().ok()?, entry))) // get file type for each entry and skip if fail
|
.filter_map(|entry| Some((entry.file_type().ok()?, entry))) // get file type for each entry and skip if fail
|
||||||
.partition::<Vec<_>, _>(|(ft, entry)| {
|
.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!
|
// icons at the top-level in a base_dir don't belong to a theme, but must still be able to be found!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue