From 1333d743f7ba583b1324b0cef4571b2945be03e5 Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Wed, 3 Jul 2024 05:07:57 +0300 Subject: [PATCH] fmt --- crates/nsis-process/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nsis-process/src/lib.rs b/crates/nsis-process/src/lib.rs index f7fd2a8..89afb04 100644 --- a/crates/nsis-process/src/lib.rs +++ b/crates/nsis-process/src/lib.rs @@ -361,17 +361,17 @@ mod tests { #[test] fn spawn_with_spaces() { let current = std::env::current_dir().unwrap(); - + let dir = current.join("dir space"); std::fs::create_dir_all(dir).unwrap(); let systemroot = std::env::var("SYSTEMROOT").unwrap_or("C:\\Windows"); - + let cmd = format!("{systemroot}\\System32\\cmd.exe"); let cmd_out = dir.join("cmdout.exe"); - + std::fs::copy(cmd, cmd_out).unwrap(); - + unsafe { run_as_user(cmd_out.display().to_string().as_str(), "/c timeout 3") }; } }