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 <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
This commit is contained in:
Squirrel
2023-12-13 14:11:07 +00:00
committed by GitHub
parent 4c4407a893
commit be8e626806
471 changed files with 1430 additions and 37 deletions
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
polkadot-node-metrics = { path = "../../metrics" }
polkadot-node-network-protocol = { path = "../protocol" }
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
futures = "0.3.21"
gum = { package = "tracing-gum", path = "../../gum" }
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
futures = "0.3.21"
schnellru = "0.2.1"
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
always-assert = "0.1"
futures = "0.3.21"
+3
View File
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
always-assert = "0.1"
async-trait = "0.1.57"
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
bitvec = { version = "1.0.1", default-features = false, features = ["alloc"] }
futures = "0.3.21"
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
futures = "0.3.21"
futures-timer = "3.0.2"
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
sp-application-crypto = { path = "../../../../substrate/primitives/application-crypto" }
sp-keystore = { path = "../../../../substrate/primitives/keystore" }
@@ -6,6 +6,9 @@ edition.workspace = true
license.workspace = true
description = "Primitives types for the Node-side"
[lints]
workspace = true
[dependencies]
async-channel = "1.8.0"
async-trait = "0.1.57"
@@ -6,6 +6,9 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
[lints]
workspace = true
[dependencies]
futures = "0.3.21"
futures-timer = "3.0.2"