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
chore(clippy): fix redundant_closure, collapsible_if, tautology assert
Louis Beaumont73539fde6756
diff --git a/crates/screenpipe-engine/src/power/monitor.rs b/crates/screenpipe-engine/src/power/monitor.rsindex 71eb6c4a3..1a888be00 100644--- a/crates/screenpipe-engine/src/power/monitor.rs+++ b/crates/screenpipe-engine/src/power/monitor.rs@@ -296,8 +296,6 @@ mod tests {#[tokio::test]async fn test_poll_power_state_returns() {// Just verify it doesn't panic — actual values depend on hardware- let state = poll_power_state().await;- // on_ac should be a valid bool (always true)- assert!(state.on_ac || !state.on_ac);+ let _ = poll_power_state().await;}}diff --git a/crates/screenpipe-secrets/src/migration.rs b/crates/screenpipe-secrets/src/migration.rsindex effbbd302..9224575a8 100644--- a/crates/screenpipe-secrets/src/migration.rs+++ b/crates/screenpipe-secrets/src/migration.rs@@ -63,7 +63,7 @@ pub async fn migrate_legacy_secrets(.ok().flatten().and_then(|t| chrono::DateTime::parse_from_rfc3339(&t).ok())- .map(|dt| std::time::SystemTime::from(dt));+ .map(std::time::SystemTime::from);match (file_mtime, store_time) {(Some(fm), Some(st)) if fm > st => {@@ -222,10 +222,8 @@ pub fn fix_secret_file_permissions(screenpipe_dir: &Path) -> usize {false};- if should_fix {- if set_permissions_600(&path) {- count += 1;- }+ if should_fix && set_permissions_600(&path) {+ count += 1;}}}