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
+3
View File
@@ -11,6 +11,9 @@ description = "FRAME pallet for WASM contracts"
readme = "README.md"
include = ["CHANGELOG.md", "README.md", "benchmarks/**", "build.rs", "src/**/*"]
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -7,6 +7,9 @@ edition.workspace = true
license.workspace = true
description = "Fixtures for testing contracts pallet."
[lints]
workspace = true
[dependencies]
wat = "1"
frame-system = { path = "../../system" }
@@ -6,3 +6,6 @@ authors.workspace = true
edition.workspace = true
license.workspace = true
description = "Common utilities for pallet-contracts-fixtures."
[lints]
workspace = true
@@ -8,6 +8,9 @@ homepage = "https://substrate.io"
repository.workspace = true
description = "A mock network for testing pallet-contracts"
[lints]
workspace = true
[dependencies]
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive", "max-encoded-len"] }
@@ -9,6 +9,9 @@ repository.workspace = true
description = "A crate that hosts a common definitions that are relevant for the pallet-contracts."
readme = "README.md"
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -8,6 +8,9 @@ homepage = "https://substrate.io"
repository.workspace = true
description = "Procedural macros used in pallet_contracts"
[lints]
workspace = true
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
@@ -8,6 +8,9 @@ homepage = "https://substrate.io"
repository.workspace = true
description = "Exposes all the host functions that a contract can import."
[lints]
workspace = true
[dependencies]
paste = { version = "1.0", default-features = false }
bitflags = "1.0"