Skip to content

Commit b45c467

Browse files
mlafeldtMaxxen
authored andcommitted
Add cargo config with common linters
1 parent d8aa5b5 commit b45c467

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.cargo/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[target.'cfg(all())']
2+
rustflags = [
3+
"-Dclippy::all",
4+
"-Dnonstandard-style",
5+
"-Drust-2018-idioms",
6+
]

.github/workflows/rust.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ jobs:
5959
DUCKDB_INCLUDE_DIR: ${{ github.workspace }}/libduckdb
6060
LD_LIBRARY_PATH: ${{ github.workspace }}/libduckdb
6161
run: |
62-
cargo clippy --all-targets --workspace --all-features -- -D warnings -A clippy::redundant-closure
63-
62+
cargo clippy --all-targets --workspace --all-features -- -D warnings
6463
6564
# For windows
6665
- name: Windows extract duckdb
@@ -154,4 +153,4 @@ jobs:
154153
path: './'
155154
args: --allow-dirty --all-features
156155
dry-run: true
157-
ignore-unpublished-changes: true
156+
ignore-unpublished-changes: true

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DUCKDB_INCLUDE_DIR = /Users/wangfenjin/duckdb
88

99
all:
1010
cargo test --features buildtime_bindgen --features modern-full -- --nocapture
11-
cargo clippy --all-targets --workspace --features buildtime_bindgen --features modern-full -- -D warnings -A clippy::redundant-closure
11+
cargo clippy --all-targets --workspace --features buildtime_bindgen --features modern-full -- -D warnings
1212

1313
test:
14-
cargo test --features bundled --features modern-full -- --nocapture
14+
cargo test --features bundled --features modern-full -- --nocapture

0 commit comments

Comments
 (0)