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 clippy warnings
Louis Beaumontdde0c8776bcf
diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rsindex 658b55d66..742ce9b45 100755--- a/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/screenpipe-app-tauri/src-tauri/src/main.rs@@ -88,7 +88,7 @@ struct ShortcutConfig {stop: String,start_audio: String,stop_audio: String,- show_search: String,+ show_chat: String,disabled: Vec<String>,}@@ -107,8 +107,8 @@ impl ShortcutConfig {.start_audio_shortcut,stop_audio: store.stop_audio_shortcut,- show_search: store- .show_search_shortcut,+ show_chat: store+ .show_chat_shortcut,disabled: store.disabled_shortcuts,})@@ -162,7 +162,7 @@ async fn update_global_shortcuts(stop: stop_shortcut,start_audio: start_audio_shortcut,stop_audio: stop_audio_shortcut,- show_search: store_config.show_search,+ show_chat: store_config.show_chat,disabled: store_config.disabled,};apply_shortcuts(&app, &config).awaitdiff --git a/screenpipe-app-tauri/src-tauri/src/store.rs b/screenpipe-app-tauri/src-tauri/src/store.rsindex 4716e699b..201182d06 100644--- a/screenpipe-app-tauri/src-tauri/src/store.rs+++ b/screenpipe-app-tauri/src-tauri/src/store.rs@@ -176,8 +176,8 @@ pub struct SettingsStore {pub start_audio_shortcut: String,#[serde(rename = "stopAudioShortcut")]pub stop_audio_shortcut: String,- #[serde(rename = "showSearchShortcut")]- pub show_search_shortcut: String,+ #[serde(rename = "showChatShortcut")]+ pub show_chat_shortcut: String,#[serde(rename = "enableRealtimeAudioTranscription")]pub enable_realtime_audio_transcription: bool,#[serde(rename = "realtimeAudioTranscriptionEngine")]@@ -454,9 +454,9 @@ impl Default for SettingsStore {start_audio_shortcut: "".to_string(),stop_audio_shortcut: "".to_string(),#[cfg(target_os = "windows")]- show_search_shortcut: "Alt+K".to_string(),+ show_chat_shortcut: "Alt+L".to_string(),#[cfg(not(target_os = "windows"))]- show_search_shortcut: "Super+Alt+K".to_string(),+ show_chat_shortcut: "Super+Alt+L".to_string(),enable_realtime_audio_transcription: false,realtime_audio_transcription_engine: "deepgram".to_string(),disable_vision: false,diff --git a/screenpipe-server/src/server.rs b/screenpipe-server/src/server.rsindex 52cb8d263..38f95e6f1 100644--- a/screenpipe-server/src/server.rs+++ b/screenpipe-server/src/server.rs@@ -87,8 +87,8 @@ use std::str::FromStr;use crate::text_embeds::generate_embedding;-use std::collections::{HashMap, HashSet};-use uuid::Uuid; // or sentry::protocol::Uuid depending on which you want to use+use std::collections::HashMap;+// or sentry::protocol::Uuid depending on which you want to usepub type FrameImageCache = LruCache<i64, (String, Instant)>;@@ -1237,7 +1237,7 @@ impl SCServer {app.into_make_service_with_connect_info::<SocketAddr>(),).await- .map_err(|e| std::io::Error::other(e))?;+ .map_err(std::io::Error::other)?;Ok(())}@@ -3352,7 +3352,7 @@ async fn handle_stream_frames_socket(_ = poll_timer.tick() => {let request_info = {let req = active_request_for_poll.lock().await;- req.clone()+ *req};if let Some((_start_time, end_time, is_descending, last_polled)) = request_info {diff --git a/screenpipe-server/src/video_utils.rs b/screenpipe-server/src/video_utils.rsindex 58daf371b..61ef60886 100644--- a/screenpipe-server/src/video_utils.rs+++ b/screenpipe-server/src/video_utils.rs@@ -341,7 +341,7 @@ async fn get_video_fps(ffmpeg_path: &PathBuf, video_path: &str) -> Result<f64> {}async fn get_video_fps_and_duration(ffmpeg_path: &PathBuf, video_path: &str) -> Result<(f64, f64)> {- let ffprobe_path = get_ffprobe_path(&ffmpeg_path);+ let ffprobe_path = get_ffprobe_path(ffmpeg_path);let output = Command::new(&ffprobe_path).args([