Rust and Cargo 1 · Testing and code quality

Lint the code

Run clippy and treat warnings as errors, as many CI pipelines do.

cargo clippy -- -D warnings

Official Rust and Cargo 1 documentation

More testing and code quality commands

All testing and code quality commands · Rust and Cargo 1 cheatsheet

Was this page helpful?