aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri/src')
-rw-r--r--src-tauri/src/northstar/mod.rs4
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