chore(clippy): scope crate lint policy

Keep panic-on-error lints at application target roots and scope signal dependencies to Linux.
This commit is contained in:
Tunglies
2026-12-03 17:20:21 +08:00
parent a76818326d
commit 032eb9767e
7 changed files with 12 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
# Clippy loads a single configuration file, so repeat the workspace defaults.
avoid-breaking-exported-api = true
allow-unwrap-in-tests = true
cognitive-complexity-threshold = 25
excessive-nesting-threshold = 5
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024"
rust-version = "1.91"
[dependencies]
[target.'cfg(target_os = "linux")'.dependencies]
clash-verge-logging = { workspace = true }
log = { workspace = true }
tokio = { workspace = true, features = ["signal"] }