mirror of
https://github.com/elicpeter/nyx.git
synced 2026-07-12 21:02:11 +02:00
feat(lint): centralize clippy::collapsible_if allowance in Cargo.toml and remove redundant file-level declarations
This commit is contained in:
parent
1f5777ff11
commit
1ebeb233c4
53 changed files with 851 additions and 212 deletions
|
|
@ -151,6 +151,15 @@ tower-http = { version = "0.6.10", features = ["cors", "compression-gzip", "trac
|
|||
z3 = { version = "0.20.0", optional = true}
|
||||
tempfile = { version = "3.27.0", optional = true }
|
||||
|
||||
[lints.clippy]
|
||||
# Allowed project-wide instead of per-file. The vast majority of
|
||||
# `collapsible_if` hits are `if let Some(x) = .. { if cond { .. } }` patterns
|
||||
# whose only "fix" is to collapse into a let-chain, which hurts readability on
|
||||
# the complex extractor expressions throughout the engine. Keeping the decision
|
||||
# here means the rationale lives in one place and new files inherit it
|
||||
# automatically rather than re-declaring `#![allow(clippy::collapsible_if)]`.
|
||||
collapsible_if = "allow"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue