fix(build): pass &args by reference to command.args to prevent move before log statement #146

Merged
gronod merged 1 commits from fix/ci-build into development 2026-08-29 17:58:04 +01:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ pub struct Ti2Metadata {
} }
#[tauri::command] #[tauri::command]
pub fn parse_ti2_header(app: AppHandle, file_path: String) -> Result<Ti2Metadata, String> { pub fn parse_ti2_header(_app: AppHandle, file_path: String) -> Result<Ti2Metadata, String> {
let path = std::path::PathBuf::from(&file_path); let path = std::path::PathBuf::from(&file_path);
if !path.exists() { if !path.exists() {
return Err(format!("File does not exist: {}", file_path)); return Err(format!("File does not exist: {}", file_path));
+1 -1
View File
@@ -36,7 +36,7 @@ impl ProcessManager {
} }
} }
let mut command = Command::new(&binary); let mut command = Command::new(&binary);
command.args(args); command.args(&args);
if let Some(dir) = cwd { if let Some(dir) = cwd {
command.current_dir(dir); command.current_dir(dir);
} }