Skip to content

Commit

Permalink
up to date clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rfvgyhn committed Nov 6, 2023
1 parent 5e54eb2 commit 367b220
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/steam/compat_tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 367b220

Please sign in to comment.