diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-24 02:18:08 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-24 02:18:08 +0200 |
commit | c227cd0111298f6d341e7b00a27d36bd0a483a36 (patch) | |
tree | bc7e1f9a0dd67151df407cd33e925eca0b76f69e | |
parent | 67867f79e415f8f232cb26c36f7387008e576350 (diff) | |
download | FlightCore-c227cd0111298f6d341e7b00a27d36bd0a483a36.tar.gz FlightCore-c227cd0111298f6d341e7b00a27d36bd0a483a36.zip |
fix: Address clippy errors
-rw-r--r-- | src-tauri/src/northstar/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-tauri/src/northstar/mod.rs b/src-tauri/src/northstar/mod.rs index 9ed755c6..86e50d5f 100644 --- a/src-tauri/src/northstar/mod.rs +++ b/src-tauri/src/northstar/mod.rs @@ -118,7 +118,7 @@ pub fn launch_northstar( // We cannot add the params directly because of limitations with cmd.exe // https://stackoverflow.com/questions/9964865/c-system-not-working-when-there-are-spaces-in-two-different-parameters/9965141#9965141 - let launch_parameters = launch_parameters.unwrap_or_else(|| "".to_string()); + let launch_parameters = launch_parameters.unwrap_or_default(); let ns_params: Vec<&str> = launch_parameters.split_whitespace().collect(); dbg!(ns_params.clone()); args.extend(ns_params); @@ -184,7 +184,7 @@ pub fn launch_northstar_steam( return Err("Couldn't access Titanfall2 directory".to_string()); } - let launch_parameters = launch_parameters.unwrap_or_else(|| "".to_string()); + let launch_parameters = launch_parameters.unwrap_or_default(); match open::that(format!( "steam://run/{}//--northstar {}/", TITANFALL2_STEAM_ID, launch_parameters |