From c2c8d4f95313dfc67ec745b65e63cdb5a695618e Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Tue, 23 Apr 2024 22:27:44 +0800 Subject: [PATCH] deny unused imports Signed-off-by: Ruihang Xia --- .github/workflows/rust.yml | 2 +- Cargo.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f27b5d12f47f..ce4b4b06cf44 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -77,7 +77,7 @@ jobs: run: cargo check --all-targets --no-default-features -p datafusion-functions - name: Check workspace in debug mode - run: cargo check + run: cargo check --all-targets --workspace - name: Check workspace with avro,json features run: cargo check --workspace --benches --features avro,json diff --git a/Cargo.toml b/Cargo.toml index 2941be20e85d..3ca3af284675 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -130,3 +130,6 @@ rpath = false [workspace.lints.clippy] # Detects large stack-allocated futures that may cause stack overflow crashes (see threshold in clippy.toml) large_futures = "warn" + +[workspace.lints.rust] +unused_imports = "deny"