Use cargo workspace lints

This commit is contained in:
Joscha 2024-04-25 20:36:14 +02:00
parent 131b581880
commit db529688e9
8 changed files with 21 additions and 33 deletions

View file

@ -19,5 +19,14 @@ thiserror = "1.0.56"
git = "https://github.com/Garmelon/toss.git"
tag = "v0.2.2"
[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"
[profile.dev.package."*"]
opt-level = 3