From 878c436e69617c76b795fca91ae4300471ad8ebe Mon Sep 17 00:00:00 2001 From: gronod Date: Sat, 29 Aug 2026 17:57:39 +0100 Subject: [PATCH] fix(build): pass &args by reference to command.args to prevent move before log statement (fixes CI #13153) --- src-tauri/src/commands.rs | 2 +- src-tauri/src/process_manager.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 4464fa3..d171a83 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -179,7 +179,7 @@ pub struct Ti2Metadata { } #[tauri::command] -pub fn parse_ti2_header(app: AppHandle, file_path: String) -> Result { +pub fn parse_ti2_header(_app: AppHandle, file_path: String) -> Result { let path = std::path::PathBuf::from(&file_path); if !path.exists() { return Err(format!("File does not exist: {}", file_path)); diff --git a/src-tauri/src/process_manager.rs b/src-tauri/src/process_manager.rs index 7868542..594bd48 100644 --- a/src-tauri/src/process_manager.rs +++ b/src-tauri/src/process_manager.rs @@ -36,7 +36,7 @@ impl ProcessManager { } } let mut command = Command::new(&binary); - command.args(args); + command.args(&args); if let Some(dir) = cwd { command.current_dir(dir); } -- 2.39.5