feat: clippy: treat warning as error

This commit is contained in:
Paul Pan 2024-08-23 10:02:27 +08:00
parent 607c4dc0c6
commit b503356183

View File

@ -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