From ddf24ad1ec0ca4d866039539079467c9e4359f78 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 20:01:21 +0200 Subject: [PATCH] cultmesh-rs: rustfmt the canary assertions Co-Authored-By: Claude Opus 5.5 --- packages/cultmesh-rs/tests/rudp_document_server.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/cultmesh-rs/tests/rudp_document_server.rs b/packages/cultmesh-rs/tests/rudp_document_server.rs index 348bc67a..a3f5abcc 100644 --- a/packages/cultmesh-rs/tests/rudp_document_server.rs +++ b/packages/cultmesh-rs/tests/rudp_document_server.rs @@ -363,7 +363,10 @@ fn refusal_seen_by( panic!("the refused peer was sent no refusal: {refusal:?}"); }; assert_eq!((code, details), (None, None)); - assert!(!error.contains("CANARY"), "a sink's or source's text reached the peer: {error}"); + assert!( + !error.contains("CANARY"), + "a sink's or source's text reached the peer: {error}" + ); assert_eq!( client.reliable_send_status(receipt), CultNetRudpReliableSendStatus::Pending, @@ -693,7 +696,9 @@ fn application_rejection_is_nonfatal_peer_scoped_refused_to_the_peer_and_unackno assert_eq!(rejection.message_id, "rejected-snapshot"); assert_eq!( rejection.reason, - CultMeshRudpRejectionReason::SnapshotSourceFailed("injected source failure CANARY-7f3a".into()) + CultMeshRudpRejectionReason::SnapshotSourceFailed( + "injected source failure CANARY-7f3a".into() + ) ); assert_eq!(server.session_count(), 1); assert_eq!(