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;