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));