Clippy fixes (#309)

* Automatic clippy fixes

* Manual clippy corrections
This commit is contained in:
Philip Kristoffersen
2023-01-04 20:28:43 +01:00
committed by GitHub
parent f1591b7818
commit 4ed9490c57
21 changed files with 42 additions and 46 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ pub fn write_collections<S: AsRef<str>>(
}
let new_string = write_vdf_collection_to_string(
&path.clone().to_string_lossy(),
path.clone().to_string_lossy(),
&vdf_collections,
);
if let Some(new_string) = new_string {
+1 -1
View File
@@ -49,7 +49,7 @@ pub fn ensure_steam_started(_settings: &super::SteamSettings) {
if processes.next().is_none() {
//no steam, we need to start it
println!("Starting steam");
let mut command = Command::new(&steam_name);
let mut command = Command::new(steam_name);
if let Err(e) = command.spawn() {
println!("Failed to start steam: {:?}", e);
};