Format
This commit is contained in:
parent
7598130650
commit
4f8d22c120
2 changed files with 147 additions and 139 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue