We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[warn(clippy::useless_vec)]
1 parent 9b1ec77 commit a3b67deCopy full SHA for a3b67de
src/env_var.rs
@@ -52,7 +52,7 @@ mod tests {
52
let mut vars = HashMap::new();
53
vars.env(
54
"PATH",
55
- env::join_paths(vec!["/home/a/.cargo/bin", "/home/b/.cargo/bin"].iter()).unwrap(),
+ env::join_paths(["/home/a/.cargo/bin", "/home/b/.cargo/bin"].iter()).unwrap(),
56
);
57
let tp = currentprocess::TestProcess {
58
vars,
@@ -84,7 +84,7 @@ mod tests {
84
OsStr::new("PATH"),
85
Some(
86
env::join_paths(
87
- vec![
+ [
88
"/home/z/.cargo/bin",
89
"/home/a/.cargo/bin",
90
"/home/b/.cargo/bin"
0 commit comments