Skip to content

Commit 9b1ec77

Browse files
committed
Address #[warn(clippy::needless_borrow)]
Signed-off-by: hi-rustin <[email protected]>
1 parent d63b6e5 commit 9b1ec77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/suite/cli_rustup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ fn non_utf8_arg() {
21782178
config.expect_ok(&["rustup", "default", "nightly"]);
21792179
let out = config.run(
21802180
"rustc",
2181-
&[
2181+
[
21822182
OsStr::new("--echo-args"),
21832183
OsStr::new("echoed non-utf8 arg:"),
21842184
OsStr::from_bytes(b"\xc3\x28"),
@@ -2224,7 +2224,7 @@ fn non_utf8_toolchain() {
22242224
config.expect_ok(&["rustup", "default", "nightly"]);
22252225
let out = config.run(
22262226
"rustc",
2227-
&[OsStr::from_bytes(b"+\xc3\x28")],
2227+
[OsStr::from_bytes(b"+\xc3\x28")],
22282228
&[("RUST_BACKTRACE", "1")],
22292229
);
22302230
assert!(out.stderr.contains("toolchain '�(' is not installable"));

0 commit comments

Comments
 (0)