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(engine): rustfmt connections_api.rs (fix #4275 fmt drift)

Louis Beaumont1ff789f1bf10
diff --git a/crates/screenpipe-engine/src/connections_api.rs b/crates/screenpipe-engine/src/connections_api.rs
index c66e3049c..874c26f72 100644
--- a/crates/screenpipe-engine/src/connections_api.rs
+++ b/crates/screenpipe-engine/src/connections_api.rs
@@ -2715,7 +2715,9 @@ async fn browser_run_act(
if ref_id.is_empty() {
return (
StatusCode::BAD_REQUEST,
- Json(json!({ "ok": false, "error": "missing 'ref' — get one from /snapshot (e.g. \"e7\")" })),
+ Json(
+ json!({ "ok": false, "error": "missing 'ref' — get one from /snapshot (e.g. \"e7\")" }),
+ ),
);
}
@@ -2752,7 +2754,10 @@ async fn browser_run_act(
} else {
StatusCode::UNPROCESSABLE_ENTITY
};
- (status, Json(r.result.unwrap_or_else(|| json!({ "ok": false }))))
+ (
+ status,
+ Json(r.result.unwrap_or_else(|| json!({ "ok": false }))),
+ )
}
Ok(r) => (
StatusCode::UNPROCESSABLE_ENTITY,
@@ -3828,7 +3833,10 @@ mod tests {
#[test]
fn act_script_resolves_by_ref_attribute() {
let s = browser_act_script("e7", "click", None);
- assert!(s.contains("data-sp-ref"), "act must resolve elements by ref");
+ assert!(
+ s.contains("data-sp-ref"),
+ "act must resolve elements by ref"
+ );
assert!(s.contains("\"e7\""), "act must embed the requested ref");
assert!(s.contains("CSS.escape"), "act selector must be escaped");
}
@@ -3863,7 +3871,10 @@ mod tests {
#[test]
fn browser_description_advertises_act_by_ref() {
let s = format_browser_description("base", "owned-default");
- assert!(s.contains("/act"), "description must teach the /act endpoint");
+ assert!(
+ s.contains("/act"),
+ "description must teach the /act endpoint"
+ );
assert!(s.contains("ref"), "description must mention element refs");
// /act sits between snapshot and the eval escape hatch.
let snap = s.find("/snapshot").unwrap();