refactor: fix new clippy warning

This commit is contained in:
Jake Stanger
2023-10-17 20:22:19 +01:00
parent 40998475e2
commit 5582dcf373

View File

@@ -180,7 +180,7 @@ fn parse_desktop_file(path: &Path) -> Option<DesktopFile> {
.for_each(|(key, value)| { .for_each(|(key, value)| {
desktop_file desktop_file
.entry(key.to_string()) .entry(key.to_string())
.or_insert_with(Vec::new) .or_default()
.push(value.to_string()); .push(value.to_string());
}); });