fix: allow platform-specific CPU sampler fallback lints

This commit is contained in:
Harold Hunt
2026-09-26 21:58:34 -04:00
parent 8df5f69d65
commit 4e6b15ccfa
+8
View File
@@ -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"))]