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(ci): restore rustfmt formatting in pi.rs (#4131)
Louis Beaumontc37734bb6664
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rsindex b7db37085..94c2c8068 100644--- a/crates/screenpipe-core/src/agents/pi.rs+++ b/crates/screenpipe-core/src/agents/pi.rs@@ -1789,9 +1789,13 @@ impl AgentExecutor for PiExecutor {cmd.creation_flags(CREATE_NO_WINDOW);}- let output = cmd- .output()- .map_err(|e| anyhow!("pi installation failed: could not run bun at {}: {}", bun, e))?;+ let output = cmd.output().map_err(|e| {+ anyhow!(+ "pi installation failed: could not run bun at {}: {}",+ bun,+ e+ )+ })?;if output.status.success() {info!("pi installed successfully into {}", install_dir.display());Ok(())@@ -3389,10 +3393,7 @@ mod tests {stderr: Vec::new(),};let msg = format_subprocess_failure("bun add", &silent_failure);- assert_eq!(- msg,- "bun add exit code 1; stderr: (empty); stdout: (empty)"- );+ assert_eq!(msg, "bun add exit code 1; stderr: (empty); stdout: (empty)");// Killed by a signal (raw status = signal number, no exit code).let sigill = Output {