fix(build): pass &args by reference to command.args to prevent move before log statement #146
@@ -179,7 +179,7 @@ pub struct Ti2Metadata {
|
||||
}
|
||||
|
||||
#[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);
|
||||
if !path.exists() {
|
||||
return Err(format!("File does not exist: {}", file_path));
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user