Skip to content

Commit 99b5673

Browse files
authored
Warn instead of error for unused imports (apache#12588)
* warn not error on unused imports * pre-commit error on clippy
1 parent bd8960e commit 99b5673

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,3 @@ large_futures = "warn"
169169

170170
[workspace.lints.rust]
171171
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tarpaulin)"] }
172-
unused_imports = "deny"

pre-commit.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
# This file be run directly:
2626
# $ ./pre-commit.sh
2727

28+
set -e
29+
2830
function RED() {
2931
echo "\033[0;31m$@\033[0m"
3032
}

0 commit comments

Comments
 (0)