Warn instead of error for unused imports (#12588)

* warn not error on unused imports

* pre-commit error on clippy
This commit is contained in:
Samuel Colvin
2024-09-23 18:14:20 +01:00
committed by GitHub
parent bd8960eabc
commit 99b5673fa2
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -169,4 +169,3 @@ large_futures = "warn"
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tarpaulin)"] }
unused_imports = "deny"
+2
View File
@@ -25,6 +25,8 @@
# This file be run directly:
# $ ./pre-commit.sh
set -e
function RED() {
echo "\033[0;31m$@\033[0m"
}