From 5582dcf373dfceabd02e3dcab0bdfcccf7563c44 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Tue, 17 Oct 2023 20:22:19 +0100 Subject: [PATCH] refactor: fix new clippy warning --- src/desktop_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); });