use assert_cmd::Command; #[test] fn clippy() { Command::new("cargo") .args([ "+nightly", "clippy", "--all-targets", "--", "--deny=warnings", ]) .assert() .success(); }