chore: fix dead code lints on macos (#10045)

This commit is contained in:
Luis Cossío
2026-08-04 11:18:45 +02:00
committed by generall
parent 22ac6bcb91
commit 20d693fd6c
2 changed files with 3 additions and 5 deletions
@@ -176,7 +176,6 @@ impl<T: PrimitiveVectorElement, S: UniversalRead> ImmutableDenseVectorData<T, S>
Ok(())
}
#[cfg_attr(not(target_os = "linux"), expect(dead_code))]
fn for_each_in_batch_async<F>(
&self,
keys: &[PointOffsetType],
+3 -4
View File
@@ -28,7 +28,6 @@ pub enum DebugConfigPatch {
}
pub struct DebuggerState {
#[cfg_attr(not(target_os = "linux"), expect(dead_code))]
pub pyroscope: Arc<Mutex<Option<PyroscopeState>>>,
}
@@ -40,7 +39,6 @@ impl DebuggerState {
}
}
#[cfg_attr(not(target_os = "linux"), allow(clippy::unused_self))]
pub fn get_config(&self) -> DebuggerConfig {
let pyroscope_config = {
#[cfg(target_os = "linux")]
@@ -50,6 +48,7 @@ impl DebuggerState {
}
#[cfg(not(target_os = "linux"))]
{
let _ = self; // Suppress unused_self lint
None
}
};
@@ -59,7 +58,6 @@ impl DebuggerState {
}
}
#[cfg_attr(not(target_os = "linux"), allow(clippy::unused_self))]
pub fn apply_config_patch(&self, patch: DebugConfigPatch) -> bool {
#[cfg(target_os = "linux")]
{
@@ -81,7 +79,8 @@ impl DebuggerState {
#[cfg(not(target_os = "linux"))]
{
let _ = patch; // Ignore new_config on non-linux OS
let _ = patch; // Suppress unused variable lint
let _ = self.pyroscope; // Suppress unused variable lint
false
}
}