Clippy fixes for windows specific code (#319)

* Clippy fixes for windows specific code

* Remove unwraps in windows code

* Fix compile error on unix
This commit is contained in:
Philip Kristoffersen
2023-01-08 14:02:40 +01:00
committed by GitHub
parent 7dfbc01ed2
commit 0410ceffff
6 changed files with 26 additions and 23 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ pub fn ensure_steam_started(settings: &super::SteamSettings) {
let folder = super::get_steam_path(settings);
if let Ok(folder) = folder {
let path = std::path::Path::new(&folder).join(steam_name);
let mut command = Command::new(&path);
let mut command = Command::new(path);
if let Err(e) = command.spawn() {
println!("Failed to start steam: {:?}", e);
};