mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
10 lines
469 B
Rust
10 lines
469 B
Rust
fn main() {
|
|
// Things it should warn about:
|
|
std::process::Command::new("echo").arg("-n hello").spawn().unwrap();
|
|
std::process::Command::new("cat").arg("--number file").spawn().unwrap();
|
|
|
|
// Things it should not warn about:
|
|
std::process::Command::new("echo").arg("hello world").spawn().unwrap();
|
|
std::process::Command::new("a").arg("--fmt=%a %b %c").spawn().unwrap();
|
|
std::process::Command::new("b").arg("-ldflags=-s -w").spawn().unwrap();
|
|
}
|