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"