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: fix formatting issues

Louis Beaumontb10007bebfa5
diff --git a/screenpipe-server/src/video_utils.rs b/screenpipe-server/src/video_utils.rs
index d97da3221..8bd9006e7 100644
--- a/screenpipe-server/src/video_utils.rs
+++ b/screenpipe-server/src/video_utils.rs
@@ -818,9 +818,8 @@ mod pii_redaction_tests {
fn create_test_jpeg() -> Vec<u8> {
// Create a simple 100x100 white image
- let img: ImageBuffer<Rgb<u8>, Vec<u8>> = ImageBuffer::from_fn(100, 100, |_, _| {
- Rgb([255, 255, 255])
- });
+ let img: ImageBuffer<Rgb<u8>, Vec<u8>> =
+ ImageBuffer::from_fn(100, 100, |_, _| Rgb([255, 255, 255]));
let dynamic_img = DynamicImage::ImageRgb8(img);
let mut output = Cursor::new(Vec::new());
@@ -887,7 +886,7 @@ mod pii_redaction_tests {
let regions = vec![PiiRegion {
x: 90,
y: 90,
- width: 50, // Would extend beyond 100px image
+ width: 50, // Would extend beyond 100px image
height: 50,
pii_type: "SSN".to_string(),
}];
diff --git a/screenpipe-vision/src/core.rs b/screenpipe-vision/src/core.rs
index 0961022ab..7137ae9ca 100644
--- a/screenpipe-vision/src/core.rs
+++ b/screenpipe-vision/src/core.rs
@@ -590,8 +590,9 @@ fn get_active_browser_url_sync(
std::io::ErrorKind::NotFound,
"No active URL found",
)),
- Err(e) => Err(std::io::Error::other(
- format!("Failed to get active URL: {}", e),
- )),
+ Err(e) => Err(std::io::Error::other(format!(
+ "Failed to get active URL: {}",
+ e
+ ))),
}
}