Checks a file to catch common mistakes and improve your Rust code. Run clippy-driver with the same arguments you use for rustc Usage: clippy-driver [OPTIONS] INPUT Common options: -h, --help Print this message -V, --version Print version info and exit --rustc Pass all arguments to rustc Allowing / Denying lints You can use tool lints to allow or deny lints from your code, e.g.: #[allow(clippy::needless_lifetimes)]