aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-03-26 01:13:19 +0100
committerGitHub <noreply@github.com>2023-03-26 00:13:19 +0000
commita8c3c12361b66c7cc29937cfad9475db985a5d41 (patch)
tree01c93952a83667a16aeb4cc8091e60b0875e9cb4 /src-tauri
parent177f1bbe6919b88f40bd4b53d05bfb7c828c5521 (diff)
downloadFlightCore-a8c3c12361b66c7cc29937cfad9475db985a5d41.tar.gz
FlightCore-a8c3c12361b66c7cc29937cfad9475db985a5d41.zip
fix: Remove unnecessary borrows (#231)
According to `clippy`
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 0c17caa8..26878866 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -162,7 +162,7 @@ fn extract(zip_file: std::fs::File, target: &std::path::Path) -> Result<()> {
.context("Unable to create directory")?;
continue;
} else if let Some(p) = out.parent() {
- std::fs::create_dir_all(&p).context("Unable to create directory")?;
+ std::fs::create_dir_all(p).context("Unable to create directory")?;
}
let mut outfile = std::fs::OpenOptions::new()
@@ -318,7 +318,7 @@ pub fn launch_northstar(
{
let ns_exe_path = format!("{}/NorthstarLauncher.exe", game_install.game_path);
let _output = std::process::Command::new("C:\\Windows\\System32\\cmd.exe")
- .args(&["/C", "start", "", &ns_exe_path])
+ .args(["/C", "start", "", &ns_exe_path])
.spawn()
.expect("failed to execute process");
return Ok("Launched game".to_string());