chore(clippy): thumbnailer.rs, two files in operation

Fixes Clippy lints for:
* src/thumbnailer.rs
* src/operation/mod.rs
* src/operation/recursive.rs

One of the Clippy lints also involved fixing a TODO to replace a
deprecated function that malfunctioned under Windows.
This commit is contained in:
Josh Megnauth 2025-01-17 22:29:57 -05:00 committed by Jeremy Soller
parent 3460c2c106
commit df2d01e9ba
3 changed files with 35 additions and 23 deletions

View file

@ -144,9 +144,7 @@ impl ThumbnailerCache {
}
pub fn get(&self, key: &Mime) -> Vec<Thumbnailer> {
self.cache
.get(&key)
.map_or_else(|| Vec::new(), |x| x.clone())
self.cache.get(key).map_or_else(Vec::new, |x| x.clone())
}
}