Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is `cargo clippy` a superset of `cargo check`?

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?

like image 712
Zizheng Tai Avatar asked Aug 11 '19 10:08

Zizheng Tai


People also ask

What is cargo fix?

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.


1 Answers

clippy itself runs cargo check.

like image 151
riginding Avatar answered Oct 07 '22 12:10

riginding