From b3c94a303b2b20256e595880b008e54db84284c4 Mon Sep 17 00:00:00 2001 From: tison Date: Tue, 9 Apr 2024 10:59:55 +0800 Subject: [PATCH] chore: add a fix-clippy Makefile target (#3677) * chore: add a fix-clippy Makefile target * Update Makefile --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 53aad6d68da..28077b6960c 100644 --- a/Makefile +++ b/Makefile @@ -169,6 +169,10 @@ check: ## Cargo check all the targets. clippy: ## Check clippy rules. cargo clippy --workspace --all-targets --all-features -- -D warnings +.PHONY: fix-clippy +fix-clippy: ## Fix clippy violations. + cargo clippy --workspace --all-targets --all-features --fix + .PHONY: fmt-check fmt-check: ## Check code format. cargo fmt --all -- --check