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:
parent
3460c2c106
commit
df2d01e9ba
3 changed files with 35 additions and 23 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue