style: share linting options across packages

Move the Rust and Clippy linting options into the Cargo manifest and
share them with all the packages in the workspace. This ensures a
consistent style in all packages.
This commit is contained in:
Thomas Frans
2024-01-07 00:13:03 +01:00
committed by Henrik Friedrichsen
parent dee424d141
commit 2a4178e069
4 changed files with 12 additions and 4 deletions

View File

@@ -19,6 +19,13 @@ members = [
"xtask"
]
[workspace.lints.clippy]
use_self = "deny"
multiple_inherent_impl = "deny"
[lints]
workspace = true
[profile.release]
lto = true
codegen-units = 1