Skip to content

Commit 067bc40

Browse files
gilescopejoepetrowskibkonturliamaharon
authored
Set clippy lints in workspace (requires rust 1.74) (#2390)
We currently use a bit of a hack in `.cargo/config` to make sure that clippy isn't too annoying by specifying the list of lints. There is now a stable way to define lints for a workspace. The only down side is that every crate seems to have to opt into this so there's a *few* files modified in this PR. Dependencies: - [x] PR that upgrades CI to use rust 1.74 is merged. --------- Co-authored-by: joe petrowski <[email protected]> Co-authored-by: Branislav Kontur <[email protected]> Co-authored-by: Liam Aharon <[email protected]>
1 parent 28ca8cb commit 067bc40

File tree

10 files changed

+30
-0
lines changed

10 files changed

+30
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ authors.workspace = true
66
edition.workspace = true
77
license.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
bounded-collections = { version = "0.1.9", default-features = false, features = ["serde"] }
1114
derivative = { version = "2.2.0", default-features = false, features = ["use_core"] }

pallet-xcm-benchmarks/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ license.workspace = true
66
version = "1.0.0"
77
description = "Benchmarks for the XCM pallet"
88

9+
[lints]
10+
workspace = true
11+
912
[package.metadata.docs.rs]
1013
targets = ["x86_64-unknown-linux-gnu"]
1114

pallet-xcm/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ authors.workspace = true
66
edition.workspace = true
77
license.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
bounded-collections = { version = "0.1.8", default-features = false }
1114
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }

procedural/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ license.workspace = true
77
version = "1.0.0"
88
publish = true
99

10+
[lints]
11+
workspace = true
12+
1013
[lib]
1114
proc-macro = true
1215

xcm-builder/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ edition.workspace = true
66
license.workspace = true
77
version = "1.0.0"
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
impl-trait-for-tuples = "0.2.1"
1114
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive"] }

xcm-executor/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ edition.workspace = true
66
license.workspace = true
77
version = "1.0.0"
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
impl-trait-for-tuples = "0.2.2"
1114
environmental = { version = "1.1.4", default-features = false }

xcm-executor/integration-tests/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ license.workspace = true
77
version = "1.0.0"
88
publish = false
99

10+
[lints]
11+
workspace = true
12+
1013
[dependencies]
1114
codec = { package = "parity-scale-codec", version = "3.6.1" }
1215
frame-support = { path = "../../../../substrate/frame/support", default-features = false }

xcm-simulator/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ authors.workspace = true
66
edition.workspace = true
77
license.workspace = true
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
codec = { package = "parity-scale-codec", version = "3.6.1" }
1114
paste = "1.0.7"

xcm-simulator/example/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ edition.workspace = true
66
license.workspace = true
77
version = "1.0.0"
88

9+
[lints]
10+
workspace = true
11+
912
[dependencies]
1013
codec = { package = "parity-scale-codec", version = "3.6.1" }
1114
scale-info = { version = "2.10.0", features = ["derive"] }

xcm-simulator/fuzzer/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ edition.workspace = true
77
license.workspace = true
88
publish = false
99

10+
[lints]
11+
workspace = true
12+
1013
[dependencies]
1114
codec = { package = "parity-scale-codec", version = "3.6.1" }
1215
honggfuzz = "0.5.55"

0 commit comments

Comments
 (0)