Skip to content

Commit 73f3f8f

Browse files
committed
Fix clippy::needless_borrow warning
``` warning: the borrowed expression implements the required traits --> tests/std.rs:311:29 | 311 | cmd.env("PATH", &p); | ^^ help: change this to: `p` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default ```
1 parent 93be5c2 commit 73f3f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ fn test_override_env() {
308308
let mut cmd = env_cmd();
309309
cmd.env_clear().env("RUN_TEST_NEW_ENV", "123");
310310
if let Some(p) = env::var_os("PATH") {
311-
cmd.env("PATH", &p);
311+
cmd.env("PATH", p);
312312
}
313313
let result = cmd.output().await.unwrap();
314314
let output = String::from_utf8_lossy(&result.stdout).to_string();

0 commit comments

Comments
 (0)