From f73a82beea33daa6e8a94e32f85a02e8a98f195e Mon Sep 17 00:00:00 2001 From: Lewis Date: Sun, 31 May 2026 10:53:43 +0300 Subject: [PATCH] *: fmt Lewis: May this revision serve well! --- bobbin/crates/xrpc/src/lib.rs | 7 +++++-- bobbin/crates/xrpc/tests/aggregation.rs | 10 ++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/bobbin/crates/xrpc/src/lib.rs b/bobbin/crates/xrpc/src/lib.rs index f8f883a0..c8585bb3 100644 --- a/bobbin/crates/xrpc/src/lib.rs +++ b/bobbin/crates/xrpc/src/lib.rs @@ -1005,8 +1005,11 @@ impl HasSubject for PullRecord { const SHAPE: SubjectShape = SubjectShape::BareDid; } impl HasSubject for FeedCommentRecord { - const SHAPE: SubjectShape = - SubjectShape::OneOfCollections(&["sh.tangled.repo.issue", "sh.tangled.repo.pull", "sh.tangled.string"]); + const SHAPE: SubjectShape = SubjectShape::OneOfCollections(&[ + "sh.tangled.repo.issue", + "sh.tangled.repo.pull", + "sh.tangled.string", + ]); } impl HasSubject for LabelDefinitionRecord { const SHAPE: SubjectShape = SubjectShape::BareDid; diff --git a/bobbin/crates/xrpc/tests/aggregation.rs b/bobbin/crates/xrpc/tests/aggregation.rs index d3d5e4f0..f5e70308 100644 --- a/bobbin/crates/xrpc/tests/aggregation.rs +++ b/bobbin/crates/xrpc/tests/aggregation.rs @@ -1312,10 +1312,12 @@ async fn feed_comment_endpoints_reject_bare_did_or_wrong_collection() { let (status, body) = json_response(resp).await; assert_eq!(status, StatusCode::BAD_REQUEST, "{endpoint} input={input}"); let msg = body["message"].as_str().unwrap_or_default(); - assert!( - msg.contains("sh.tangled.repo.issue") && msg.contains("sh.tangled.repo.pull") && msg.contains("sh.tangled.string"), - "{endpoint} input={input}: {msg}", - ); + assert!( + msg.contains("sh.tangled.repo.issue") + && msg.contains("sh.tangled.repo.pull") + && msg.contains("sh.tangled.string"), + "{endpoint} input={input}: {msg}", + ); } }) .await; -- 2.51.2