From 1a403b4322a18c39d34b464461d472a2532da446 Mon Sep 17 00:00:00 2001 From: mataha Date: Tue, 6 Jun 2023 01:33:19 +0200 Subject: [PATCH] Fix rustfmt errors --- src/shell.rs | 2 +- src/util.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shell.rs b/src/shell.rs index 9bc5dac..2a690b8 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -102,7 +102,7 @@ mod tests { #[cfg(windows)] fn cmd_cmd(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { let opts = Opts { cmd, hook, echo, resolve_symlinks }; - let mut source = Cmd(&opts).render().unwrap(); + let source = Cmd(&opts).render().unwrap(); Command::new("cmd.exe") .args(["/a", "/d", "/e:on", "/q", "/v:off", "/k", "@doskey", "/macros:cmd.exe"]) diff --git a/src/util.rs b/src/util.rs index f0c8cdb..d9bedc3 100644 --- a/src/util.rs +++ b/src/util.rs @@ -449,5 +449,4 @@ mod tests_win { let resolved_path = super::resolve_path(path).unwrap(); assert_eq!(resolved_path.to_str().unwrap(), normalized_form); } - }