Severity: LOW
Problem
src-tauri/src/lib.rs line 1: #![allow(unexpected_cfgs)] suppresses a legitimate Rust compiler warning about unexpected cfg values. This is a blanket suppression that hides all cfg-related warnings, not just the specific one causing noise.
Proposed Solution
Replace the blanket allow with a targeted check. For example, add the expected cfg values to Cargo.toml:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("macos"))'] }
Or use a more targeted #[allow(unexpected_cfgs)] on the specific item that triggers the warning.
References
Severity: LOW
Problem
src-tauri/src/lib.rsline 1:#![allow(unexpected_cfgs)]suppresses a legitimate Rust compiler warning about unexpected cfg values. This is a blanket suppression that hides all cfg-related warnings, not just the specific one causing noise.Proposed Solution
Replace the blanket allow with a targeted check. For example, add the expected cfg values to
Cargo.toml:Or use a more targeted
#[allow(unexpected_cfgs)]on the specific item that triggers the warning.References
PLAN.mditem Replace #![allow(unexpected_cfgs)] with targeted cfg check #21