diff --git a/crates/disktree-core/src/scan_threads.rs b/crates/disktree-core/src/scan_threads.rs index ece9850..f285b8a 100644 --- a/crates/disktree-core/src/scan_threads.rs +++ b/crates/disktree-core/src/scan_threads.rs @@ -430,6 +430,14 @@ struct CpuSampler { system: sysinfo::System, } +#[cfg_attr( + not(any(target_os = "macos", target_os = "linux")), + allow( + clippy::missing_const_for_fn, + clippy::unused_self, + reason = "The fallback mirrors the stateful, non-const native API." + ) +)] impl CpuSampler { fn new() -> Self { #[cfg(any(target_os = "macos", target_os = "linux"))]