mirror of
https://github.com/tobi/disktree.git
synced 2026-11-29 08:00:52 +00:00
fix: allow platform-specific CPU sampler fallback lints
This commit is contained in:
@@ -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"))]
|
||||
|
||||
Reference in New Issue
Block a user