diff --git a/src/desktop_file.rs b/src/desktop_file.rs index 7df1018e..75dfcf0a 100644 --- a/src/desktop_file.rs +++ b/src/desktop_file.rs @@ -180,7 +180,7 @@ fn parse_desktop_file(path: &Path) -> Option { .for_each(|(key, value)| { desktop_file .entry(key.to_string()) - .or_insert_with(Vec::new) + .or_default() .push(value.to_string()); });