```
error: the borrowed expression implements the required traits
--> src/lib.rs:212:57
|
212 | signal_hook::iterator::Signals::new(&[signal_hook::consts::SIGCHLD])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `[signal_hook::consts::SIGCHLD]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
error: the borrowed expression implements the required traits
--> tests/std.rs:14:38
|
14 | Command::new("cmd").args(&["/C", "exit 0"]).spawn()
| ^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "exit 0"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
error: the borrowed expression implements the required traits
--> tests/std.rs:35:38
|
35 | Command::new("cmd").args(&["/C", "exit 1"]).spawn()
| ^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "exit 1"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:87:22
|
87 | cmd.args(&["/C", "echo foobar"]).stdout(Stdio::piped());
| ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "echo foobar"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:145:23
|
145 | .args(&["/C", "exit 1"])
| ^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "exit 1"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:156:23
|
156 | .args(&["/C", "exit 0"])
| ^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "exit 0"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:189:23
|
189 | .args(&["/C", "echo hello"])
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "echo hello"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:213:23
|
213 | .args(&["/C", "mkdir ."])
| ^^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "mkdir ."]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:231:38
|
231 | Command::new("cmd").args(&["/C", "exit 1"]).spawn().unwrap()
| ^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "exit 1"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:243:38
|
243 | Command::new("cmd").args(&["/C", "exit 1"]).spawn().unwrap()
| ^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "exit 1"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
error: the borrowed expression implements the required traits
--> tests/std.rs:257:23
|
257 | .args(&["/C", "echo hello"])
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["/C", "echo hello"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
```
```
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
```
```
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> tests/std.rs:26:5
|
26 | / match Command::new("if-this-is-a-binary-then-the-world-has-ended").spawn() {
27 | | Ok(..) => panic!(),
28 | | Err(..) => {}
29 | | }
| |_____^ help: try this: `if let Ok(..) = Command::new("if-this-is-a-binary-then-the-world-has-ended").spawn() { panic!() }`
|
= note: `#[warn(clippy::single_match)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
```