We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IconCache::get_png
1 parent 1839bbd commit 086a27dCopy full SHA for 086a27d
1 file changed
src/processes/macos_icons.rs
@@ -30,14 +30,14 @@ impl IconCache {
30
let mut hasher = DefaultHasher::new();
31
tiff.hash(&mut hasher);
32
let tiff_hash = hasher.finish();
33
- e.insert(tiff_hash);
34
let icon = match self.icons.entry(tiff_hash) {
35
Entry::Occupied(e) => e.into_mut(),
36
Entry::Vacant(e) => {
37
let png = tiff_to_png(&tiff)?;
38
e.insert(png)
39
}
40
};
+ e.insert(tiff_hash);
41
Ok(icon)
42
43
0 commit comments