From c357a2dba7b49e08025579e2a335828914490948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AA=80=E8=BD=B6=E6=AD=A5=E6=A3=8B?= <57583509+oissevalt@users.noreply.github.com> Date: Fri, 8 Dec 2023 01:00:36 +0800 Subject: [PATCH] fix: Windows-specific code --- src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 980faaf..ab09041 100644 --- a/src/main.rs +++ b/src/main.rs @@ -117,12 +117,7 @@ fn run_command(path: impl AsRef) { std::thread::sleep(std::time::Duration::from_secs(2)); if let Err(err) = Command::new("cmd") .current_dir(path) - .args([ - "/C", - "start", - "", - path.as_ref().join(SEAL_EXE).to_string_lossy(), - ]) + .args(["/C", "start", "", path.as_ref().join(SEAL_EXE)]) .spawn() { eprintln!("\n{}\n", format!("出现错误: {}", err).red());