Split `lint-rust` target into two targets
This allows us to run either `rustfmt` or `clippy` by themselves. It
also allows us to run them in parallel (with `make -j`) or to run the
Clippy checks even if the formatting check fails (with `make -k`).
@@ -386,8 +386,17 @@ lint-python: ## Run Python lint checks
| xargs ./pants lint
.PHONY: lint-rust
+lint-rust: lint-rust-clippy
+lint-rust: lint-rust-rustfmt
lint-rust: ## Run Rust lint checks
- cd src/rust; bin/format --check; bin/lint
+
+.PHONY: lint-rust-clippy
+lint-rust-clippy: ## Run Clippy on Rust code
+ cd src/rust; bin/lint
+
+.PHONY: lint-rust-rustfmt
+lint-rust-rustfmt: ## Check to see if Rust code is properly formatted
+ cd src/rust; bin/format --check
.PHONY: lint-shell
lint-shell: ## Run Shell lint checks
