Set up workspace-wide lints

This commit is contained in:
Joscha 2024-03-02 23:21:06 +01:00
parent 44294830af
commit 8aa38070ca
3 changed files with 15 additions and 0 deletions

View file

@ -8,3 +8,12 @@ edition = "2021"
[workspace.dependencies] [workspace.dependencies]
showbits-common.path = "./showbits-common" showbits-common.path = "./showbits-common"
[workspace.lints]
rust.unsafe_code = "forbid"
rust.future_incompatible = "warn"
rust.rust_2018_idioms = "warn"
rust.unused = "warn"
rust.noop_method_call = "warn"
rust.single_use_lifetimes = "warn"
clippy.use_self = "warn"

View file

@ -2,3 +2,6 @@
name = "showbits-common" name = "showbits-common"
version.workspace = true version.workspace = true
edition.workspace = true edition.workspace = true
[lints]
workspace = true

View file

@ -5,3 +5,6 @@ edition.workspace = true
[dependencies] [dependencies]
showbits-common.workspace = true showbits-common.workspace = true
[lints]
workspace = true