From e22598b384fae182ca41b5089dc80ab23e1a2d0b Mon Sep 17 00:00:00 2001 From: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 Date: Tue, 16 Jun 2026 17:50:06 -0400 Subject: [PATCH] style: rustfmt the NIP-10 top-level test assertions cargo fmt --all --check failed Rust Lint on the assertions added in the prior commit (lines 925, 938). Whitespace/reflow only; no assertion or logic change. Co-authored-by: Will Pfleger Signed-off-by: Will Pfleger --- .../buzz-test-client/tests/e2e_nostr_interop.rs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/crates/buzz-test-client/tests/e2e_nostr_interop.rs b/crates/buzz-test-client/tests/e2e_nostr_interop.rs index 97b87d2b4..b71cab6c5 100644 --- a/crates/buzz-test-client/tests/e2e_nostr_interop.rs +++ b/crates/buzz-test-client/tests/e2e_nostr_interop.rs @@ -925,7 +925,11 @@ async fn test_nip10_thread_reply_not_in_top_level() { .send_event(broadcast_reply) .await .expect("send broadcast reply"); - assert!(ok.accepted, "relay rejected broadcast reply: {}", ok.message); + assert!( + ok.accepted, + "relay rejected broadcast reply: {}", + ok.message + ); client.disconnect().await.expect("disconnect"); @@ -938,10 +942,12 @@ async fn test_nip10_thread_reply_not_in_top_level() { .find(|e| e["content"].as_str() == Some(content)) .cloned() }; - let excluded = find(&excluded_content) - .unwrap_or_else(|| panic!("excluded reply must be recorded under root. got: {under_root:?}")); - let broadcast = find(&broadcast_content) - .unwrap_or_else(|| panic!("broadcast reply must be recorded under root. got: {under_root:?}")); + let excluded = find(&excluded_content).unwrap_or_else(|| { + panic!("excluded reply must be recorded under root. got: {under_root:?}") + }); + let broadcast = find(&broadcast_content).unwrap_or_else(|| { + panic!("broadcast reply must be recorded under root. got: {under_root:?}") + }); // Negative direction: depth >= 1 AND broadcast = false → EXCLUDED. // (Recorded under root + no `["broadcast","1"]` tag are exactly the two