From 367b220c1244cec2ecd5af8e03920a1e01264c73 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 6 Nov 2023 14:03:18 -0700 Subject: [PATCH] up to date clippy --- src/steam/compat_tool.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/steam/compat_tool.rs b/src/steam/compat_tool.rs index cca6cda..3418c8b 100644 --- a/src/steam/compat_tool.rs +++ b/src/steam/compat_tool.rs @@ -22,9 +22,7 @@ impl CompatToolMapping { fn parse_tool_name(tool_name: &str, app_id: &AppId, map: &mut CompatToolMapping) { if app_id != &DEFAULT_PROTON_APP_ID { - map.entry(tool_name.to_string()) - .or_insert_with(Vec::new) - .push(*app_id); + map.entry(tool_name.to_string()).or_default().push(*app_id); } }