Meta: Add lints to Rust workspace lint configuration

This commit is contained in:
juhotuho10 2026-03-03 15:52:25 +02:00 committed by Andreas Kling
parent 2a42ef36db
commit 94d3aa8d89
2 changed files with 19 additions and 0 deletions

View file

@ -16,3 +16,19 @@ inherits = "release"
incremental = false
codegen-units = 1
lto = true
[workspace.lints.clippy]
all = "deny" # includes lintgroups: correctness, suspicious, style, complexity, perf
# from clippy:nursery:
redundant_clone = "deny"
# from clippy:pedantic:
uninlined_format_args = "deny"
semicolon_if_nothing_returned = "deny"
manual_let_else = "deny"
unnecessary_wraps = "deny"
manual_assert = "deny"
ref_option = "deny"
elidable_lifetime_names = "deny"
unnested_or_patterns = "deny"
borrow_as_ptr = "deny"
explicit_iter_loop = "deny"

View file

@ -16,3 +16,6 @@ num-integer = "0.1"
[build-dependencies]
bytecode_def = { path = "../BytecodeDef" }
[lints]
workspace = true