From 01ca7916cebe33ab66150e125384b674672efe48 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Mon, 23 Sep 2024 18:14:20 +0100 Subject: [PATCH] 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 e8cd52315a51..629992177913 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 c81dd9f8e5e8..7ab121919861 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" }