This commit is contained in:
Jeremy Soller 2025-04-21 13:32:29 -06:00
parent 7598130650
commit 4f8d22c120
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
2 changed files with 147 additions and 139 deletions

View file

@ -334,8 +334,7 @@ impl MimeAppCache {
.entry(mime.clone())
.or_insert_with(|| Vec::with_capacity(1));
if !apps.iter().any(|x| filename_eq(&x.path, filename)) {
if let Some(app) =
all_apps.find(|x| filename_eq(&x.path, filename))
if let Some(app) = all_apps.find(|x| filename_eq(&x.path, filename))
{
apps.push(MimeApp::from(&app));
} else {