Skip to content

Commit 0572f36

Browse files
committed
Use same lints settings across the crates
1 parent 406de6a commit 0572f36

15 files changed

Lines changed: 45 additions & 13 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ jobs:
3939
- uses: actions/checkout@v4
4040
- uses: dsherret/rust-toolchain-file@v1
4141
- uses: Swatinem/rust-cache@v2
42-
- run: cargo clippy --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious
42+
- run: cargo clippy --all-targets --all-features -- -D clippy::correctness

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,3 @@ url = "2.5.4"
5050
valuable = "0.1.1"
5151

5252
[workspace.lints.clippy]
53-
correctness = "deny"
54-
suspicious = "warn"
55-
perf = "warn"
56-
cast_lossless = "warn"
57-
manual_string_new = "warn"
58-
59-
len_without_is_empty = "allow

crates/archive/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ tokio-util = "0.7.13"
3030
tracing = { workspace = true }
3131
tracing-subscriber = { workspace = true, features = ["env-filter", "json", "time"] }
3232
url = { workspace = true }
33+
34+
[lints]
35+
workspace = true

crates/array/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ proptest = "1.5.0"
1818
[[bench]]
1919
name = "main"
2020
harness = false
21+
22+
[lints]
23+
workspace = true

crates/bds/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ tracing = { workspace = true, features = ["valuable"] }
2323
tracing-subscriber = { workspace = true, features = ["env-filter", "json", "valuable"] }
2424
url = { workspace = true }
2525
uuid = { workspace = true, features = ["v7"] }
26+
27+
[lints]
28+
workspace = true

crates/bloom-filter/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ criterion = "0.5.1"
1212
[[bench]]
1313
name = "main"
1414
harness = false
15+
16+
[lints]
17+
workspace = true

crates/data-source/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ sqd-data-client = { path = "../data-client" }
1010
sqd-primitives = { path = "../primitives" }
1111
tokio = { workspace = true }
1212
tracing = { workspace = true }
13+
14+
[lints]
15+
workspace = true

crates/data/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ sqd-array = { path = "../array" }
1313
sqd-bloom-filter = { path = "../bloom-filter" }
1414
sqd-data-core = { path = "../data-core" }
1515
sqd-dataset = { path = "../dataset" }
16-
sqd-primitives = { path = "../primitives" }
16+
sqd-primitives = { path = "../primitives" }
17+
18+
[lints]
19+
workspace = true

crates/dataset/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7+
8+
[lints]
9+
workspace = true

crates/hotblocks/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ tikv-jemallocator = "0.6.0"
3030
tokio = { workspace = true, features = ["full"] }
3131
tracing = { workspace = true, features = ["valuable"] }
3232
tracing-subscriber = { workspace = true, features = ["env-filter", "json", "valuable"] }
33-
url = { workspace = true, features = ["serde"] }
33+
url = { workspace = true, features = ["serde"] }
34+
35+
[lints]
36+
workspace = true

0 commit comments

Comments
 (0)