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
+2
View File
@@ -1,3 +1,5 @@
#![deny(clippy::expect_used, clippy::unwrap_used)]
fn main() -> Result<(), Box<dyn std::error::Error>> {
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows")
&& std::env::var("CARGO_CFG_TARGET_ENV").as_deref() == Ok("msvc")