A collection of lints to catch common mistakes and improve your Rust code.
More information.
- Run checks over the code in the current directory:
- Require that `Cargo.lock` is up to date:
- Run checks on all packages in the workspace:
- Run checks for a package:
cargo clippy --package {package}
- Treat warnings as errors:
cargo clippy -- --deny warnings
- Run checks and ignore warnings:
cargo clippy -- --allow warnings
- Apply Clippy suggestions automatically:
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY