Skip to content

Apache DataFusion SQL Query Engine

Warn instead of error for unused imports (#12588)

Samuel Colvin99b5673fa296
diff --git a/Cargo.toml b/Cargo.toml
index e8cd52315a..6299921779 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -169,4 +169,3 @@ large_futures = "warn"
[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(tarpaulin)"] }
-unused_imports = "deny"
diff --git a/pre-commit.sh b/pre-commit.sh
index c81dd9f8e5..7ab1219198 100755
--- a/pre-commit.sh
+++ b/pre-commit.sh
@@ -25,6 +25,8 @@
# This file be run directly:
# $ ./pre-commit.sh
+set -e
+
function RED() {
echo "\033[0;31m$@\033[0m"
}