YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: remove unnecessary #[allow(dead_code)] and #[allow(unused)] annotations
Louis Beaumont43d4dff0f973
diff --git a/crates/screenpipe-audio/src/core/stream.rs b/crates/screenpipe-audio/src/core/stream.rsindex 7b5d3443d..d91777f84 100644--- a/crates/screenpipe-audio/src/core/stream.rs+++ b/crates/screenpipe-audio/src/core/stream.rs@@ -74,7 +74,6 @@ pub struct AudioStream {pub is_disconnected: Arc<AtomicBool>,}-#[allow(dead_code)]enum StreamControl {Stop(oneshot::Sender<()>),}diff --git a/crates/screenpipe-audio/src/speaker/embedding_manager.rs b/crates/screenpipe-audio/src/speaker/embedding_manager.rsindex d76e2cc36..a570aa0de 100644--- a/crates/screenpipe-audio/src/speaker/embedding_manager.rs+++ b/crates/screenpipe-audio/src/speaker/embedding_manager.rs@@ -73,7 +73,6 @@ impl EmbeddingManager {speaker_id}- #[allow(unused)]pub fn get_all_speakers(&self) -> &HashMap<usize, Array1<f32>> {&self.speakers}diff --git a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rs b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rsindex a8e41da8a..1e8bf2a0b 100644--- a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rs+++ b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/pipeline_benchmark.rs@@ -9,7 +9,6 @@//! and optionally runs Whisper to verify transcription quality.use crate::audio_fixtures::{self, SAMPLE_RATE};-#[allow(unused_imports)]use crate::ground_truth::{ScenarioManifest, SpeechSegment, synthetic_manifest};use crate::metrics::PipelineResult;diff --git a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/smart_mode_benchmark.rs b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/smart_mode_benchmark.rsindex ba58d65ff..7c0f7a25e 100644--- a/crates/screenpipe-audio/tests/audio_pipeline_benchmark/smart_mode_benchmark.rs+++ b/crates/screenpipe-audio/tests/audio_pipeline_benchmark/smart_mode_benchmark.rs@@ -17,16 +17,11 @@ use std::sync::Arc;/// Simulated audio chunk matching the pipeline's 30-second intervals.#[derive(Debug, Clone)]-#[allow(dead_code)]struct SimulatedChunk {- /// Chunk index (0-based)- index: usize,/// Capture timestamp (seconds from start)capture_time_secs: f64,/// Whether this chunk contains speech (ground truth)has_speech: bool,- /// Which channel: "mic" or "system"- channel: String,}/// Result of the smart mode simulation.@@ -137,7 +132,6 @@ fn generate_chunks() -> Vec<SimulatedChunk> {let mut chunks = Vec::new();let mut t = 0.0;- let mut index = 0;while t < total_duration_secs {let has_speech = speech_ranges@@ -145,14 +139,11 @@ fn generate_chunks(.any(|(start, end)| t >= *start && t < *end);chunks.push(SimulatedChunk {- index,capture_time_secs: t,has_speech,- channel: "mic".to_string(),});t += chunk_interval_secs;- index += 1;}chunks