I'm trying to build and test my Rust code with a CI, and I'm wondering whether cargo clippy
(potentially with options) covers everything that cargo check
does. Do I only need to run cargo clippy
, or do I need to run both?
This is intended to help automate tasks that rustc itself already knows how to tell you to fix! Executing cargo fix will under the hood execute cargo-check(1). Any warnings applicable to your crate will be automatically fixed (if possible) and all remaining warnings will be displayed when the check process is finished.
clippy
itself runs cargo check
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With