This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 99b5673fa2 Warn instead of error for unused imports (#12588)
99b5673fa2 is described below
commit 99b5673fa2960a26dfaf72c7dfdf9cfb6d7fba33
Author: Samuel Colvin <[email protected]>
AuthorDate: Mon Sep 23 18:14:20 2024 +0100
Warn instead of error for unused imports (#12588)
* warn not error on unused imports
* pre-commit error on clippy
---
Cargo.toml | 1 -
pre-commit.sh | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
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"
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]