Set up workspace-wide lints
This commit is contained in:
parent
44294830af
commit
8aa38070ca
3 changed files with 15 additions and 0 deletions
|
|
@ -8,3 +8,12 @@ edition = "2021"
|
|||
|
||||
[workspace.dependencies]
|
||||
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"
|
||||
|
|
|
|||
|
|
@ -2,3 +2,6 @@
|
|||
name = "showbits-common"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
|
|
@ -5,3 +5,6 @@ edition.workspace = true
|
|||
|
||||
[dependencies]
|
||||
showbits-common.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue