Skip to content

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

style: cargo fmt on audio/embedding.rs and core/preset_fallback.rs

Louis Beaumont13bc83daa232
diff --git a/crates/screenpipe-audio/src/speaker/embedding.rs b/crates/screenpipe-audio/src/speaker/embedding.rs
index ea4179afc..70ff91bf6 100644
--- a/crates/screenpipe-audio/src/speaker/embedding.rs
+++ b/crates/screenpipe-audio/src/speaker/embedding.rs
@@ -17,7 +17,8 @@ impl EmbeddingExtractor {
.map_err(anyhow::Error::msg)
.context("compute_fbank failed")?;
let features = features.insert_axis(ndarray::Axis(0)); // Add batch dimension
- let inputs = ort::inputs!["feats" => ort::value::TensorRef::from_array_view(features.view())?];
+ let inputs =
+ ort::inputs!["feats" => ort::value::TensorRef::from_array_view(features.view())?];
let ort_outs = self.session.run(inputs)?;
let ort_out = ort_outs
diff --git a/crates/screenpipe-core/src/pipes/preset_fallback.rs b/crates/screenpipe-core/src/pipes/preset_fallback.rs
index 77493a1ae..a5af45b50 100644
--- a/crates/screenpipe-core/src/pipes/preset_fallback.rs
+++ b/crates/screenpipe-core/src/pipes/preset_fallback.rs
@@ -331,7 +331,10 @@ impl PresetFallbackRegistry {
breaker.state = BreakerState::Closed;
breaker.failure_count = 0;
breaker.success_streak = 0;
- info!("startup recovery: preset '{}' reset to closed (stale open >24h)", id);
+ info!(
+ "startup recovery: preset '{}' reset to closed (stale open >24h)",
+ id
+ );
} else {
breaker.state = BreakerState::HalfOpen;
info!("startup recovery: preset '{}' moved to half-open", id);