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: cargo fmt
Louis Beaumont4e99aa2d5751
diff --git a/crates/screenpipe-engine/src/event_driven_capture.rs b/crates/screenpipe-engine/src/event_driven_capture.rsindex 5ff69352a..c8d7228bb 100644--- a/crates/screenpipe-engine/src/event_driven_capture.rs+++ b/crates/screenpipe-engine/src/event_driven_capture.rs@@ -16,10 +16,10 @@ use chrono::Utc;use screenpipe_a11y::tree::TreeWalkerConfig;use screenpipe_a11y::ActivityFeed;use screenpipe_db::DatabaseManager;+use screenpipe_screen::capture_screenshot_by_window::{get_excluded_sck_window_ids, WindowFilters};use screenpipe_screen::frame_comparison::{FrameComparer, FrameComparisonConfig};use screenpipe_screen::monitor::SafeMonitor;use screenpipe_screen::snapshot_writer::SnapshotWriter;-use screenpipe_screen::capture_screenshot_by_window::{get_excluded_sck_window_ids, WindowFilters};use screenpipe_screen::utils::capture_monitor_image;use std::collections::HashMap;use std::sync::atomic::{AtomicBool, Ordering};diff --git a/crates/screenpipe-screen/src/capture_screenshot_by_window.rs b/crates/screenpipe-screen/src/capture_screenshot_by_window.rsindex 662000af7..262cc82f6 100644--- a/crates/screenpipe-screen/src/capture_screenshot_by_window.rs+++ b/crates/screenpipe-screen/src/capture_screenshot_by_window.rs@@ -976,7 +976,10 @@ pub fn get_excluded_sck_window_ids(window_filters: &WindowFilters) -> Vec<u32> {let windows = match SckWindow::all() {Ok(w) => w,Err(e) => {- debug!("get_excluded_sck_window_ids: failed to enumerate windows: {}", e);+ debug!(+ "get_excluded_sck_window_ids: failed to enumerate windows: {}",+ e+ );return Vec::new();}};@@ -998,7 +1001,11 @@ pub fn get_excluded_sck_window_ids(window_filters: &WindowFilters) -> Vec<u32> {}if !excluded.is_empty() {- debug!("resolved {} ignored window(s) to SCK IDs: {:?}", excluded.len(), excluded);+ debug!(+ "resolved {} ignored window(s) to SCK IDs: {:?}",+ excluded.len(),+ excluded+ );}excludeddiff --git a/crates/screenpipe-screen/src/core.rs b/crates/screenpipe-screen/src/core.rsindex bff3acce1..0b4755dcd 100644--- a/crates/screenpipe-screen/src/core.rs+++ b/crates/screenpipe-screen/src/core.rs@@ -4,7 +4,9 @@#[cfg(target_os = "macos")]use crate::apple::perform_ocr_apple;-use crate::capture_screenshot_by_window::{get_excluded_sck_window_ids, CapturedWindow, WindowFilters};+use crate::capture_screenshot_by_window::{+ get_excluded_sck_window_ids, CapturedWindow, WindowFilters,+};use crate::custom_ocr::perform_ocr_custom;use crate::frame_comparison::{FrameComparer, FrameComparisonConfig};use crate::metrics::PipelineMetrics;@@ -207,7 +209,9 @@ pub async fn continuous_capture(let mut captured = None;for attempt in 0..=MAX_CAPTURE_RETRIES {- match capture_monitor_image(&monitor, &get_excluded_sck_window_ids(&window_filters)).await {+ match capture_monitor_image(&monitor, &get_excluded_sck_window_ids(&window_filters))+ .await+ {Ok(result) => {if attempt > 0 {debug!(diff --git a/crates/screenpipe-screen/src/monitor.rs b/crates/screenpipe-screen/src/monitor.rsindex f8882f289..a8f026996 100644--- a/crates/screenpipe-screen/src/monitor.rs+++ b/crates/screenpipe-screen/src/monitor.rs@@ -316,13 +316,11 @@ impl SafeMonitor {if use_sck {let monitor = match cached_sck {Some(m) => m,- None => {- SckMonitor::all()- .map_err(|e| format!("{}", e))?- .into_iter()- .find(|m| m.id() == monitor_id)- .ok_or_else(|| "Monitor not found".to_string())?- }+ None => SckMonitor::all()+ .map_err(|e| format!("{}", e))?+ .into_iter()+ .find(|m| m.id() == monitor_id)+ .ok_or_else(|| "Monitor not found".to_string())?,};if monitor.width().unwrap_or(0) == 0 || monitor.height().unwrap_or(0) == 0 {