From b503356183bc8ef8974e9005e104d24c8a5cf98d Mon Sep 17 00:00:00 2001 From: Paul Pan Date: Fri, 23 Aug 2024 10:02:27 +0800 Subject: [PATCH] feat: clippy: treat warning as error --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e1f2209..515bf03 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,9 @@ kernel: env RUSTFLAGS="$(RUSTFLAGS)" cargo build --bin kernel $(CARGO_BUILD_ARGS) clippy: - cargo clippy -p allocator - cargo clippy -p utils - cargo clippy --no-deps $(CARGO_TARGET_ARGS) --manifest-path=kernel/Cargo.toml + env RUSTFLAGS="-Dwarnings" cargo clippy -p allocator + env RUSTFLAGS="-Dwarnings" cargo clippy -p utils + env RUSTFLAGS="-Dwarnings" cargo clippy --no-deps $(CARGO_TARGET_ARGS) --manifest-path=kernel/Cargo.toml fmt: cargo fmt --all