Skip to content

Commit

Permalink
Warn instead of error for unused imports (apache#12588)
Browse files Browse the repository at this point in the history
* warn not error on unused imports

* pre-commit error on clippy
  • Loading branch information
samuelcolvin authored and bgjackma committed Sep 25, 2024
1 parent 65ddcd9 commit 01ca791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,3 @@ large_futures = "warn"

[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tarpaulin)"] }
unused_imports = "deny"
2 changes: 2 additions & 0 deletions pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
# This file be run directly:
# $ ./pre-commit.sh

set -e

function RED() {
echo "\033[0;31m$@\033[0m"
}
Expand Down

0 comments on commit 01ca791

Please sign in to comment.