From 67abd8d8ffa765b2a89daa0deae40688861433e8 Mon Sep 17 00:00:00 2001 From: Cameron Cordes Date: Thu, 30 Apr 2026 21:16:34 +0000 Subject: [PATCH] style: cargo fmt Pre-existing whitespace drift in test bodies, normalized by rustfmt. No behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/ai/face_client.rs | 5 ++++- src/tags.rs | 23 ++++++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/ai/face_client.rs b/src/ai/face_client.rs index e76d9ee..b117cd9 100644 --- a/src/ai/face_client.rs +++ b/src/ai/face_client.rs @@ -383,7 +383,10 @@ mod tests { // body cap and rejected normal-size photos before they reached // the backend. assert!(is_transient(&classify_error_response(408, ""))); - assert!(is_transient(&classify_error_response(413, "nginx"))); + assert!(is_transient(&classify_error_response( + 413, + "nginx" + ))); assert!(is_transient(&classify_error_response(429, "{}"))); } diff --git a/src/tags.rs b/src/tags.rs index bdd5abd..150b3a3 100644 --- a/src/tags.rs +++ b/src/tags.rs @@ -1253,20 +1253,29 @@ mod tests { // Seed: two paths tagged, one path untagged. dao.tagged_photos.borrow_mut().insert( "a.jpg".into(), - vec![Tag { id: 1, name: "alpha".into(), created_time: 0 }], + vec![Tag { + id: 1, + name: "alpha".into(), + created_time: 0, + }], ); dao.tagged_photos.borrow_mut().insert( "b.jpg".into(), vec![ - Tag { id: 2, name: "beta".into(), created_time: 0 }, - Tag { id: 3, name: "gamma".into(), created_time: 0 }, + Tag { + id: 2, + name: "beta".into(), + created_time: 0, + }, + Tag { + id: 3, + name: "gamma".into(), + created_time: 0, + }, ], ); let grouped = dao - .get_tags_grouped_by_paths( - &ctx, - &["a.jpg".into(), "b.jpg".into(), "c.jpg".into()], - ) + .get_tags_grouped_by_paths(&ctx, &["a.jpg".into(), "b.jpg".into(), "c.jpg".into()]) .unwrap(); assert_eq!(grouped.get("a.jpg").map(|v| v.len()), Some(1)); assert_eq!(grouped.get("b.jpg").map(|v| v.len()), Some(2));