From e06ed43b07947098f211926f063be17cabbe928e Mon Sep 17 00:00:00 2001 From: faumaray Date: Fri, 23 Oct 2026 22:26:44 +0300 Subject: [PATCH] Bind the count in the subscription wait so both rustfmt versions format it alike Nightly rustfmt wanted `.count()` and `== 3` on separate lines in the wait for the three subscriptions of a_session_that_ends_during_the_connect_syncs_says_why, 1.94 (which CI pins) did not. The count is a local now, and the comparison a line of its own. Nightly rustfmt differs from the baseline's six diffs only (history.rs, encoder.rs, discovery.rs, chat.rs, studio.rs, engine.rs) after it. Co-Authored-By: Claude Sonnet 5.5 --- crates/voelin-core/src/link/tests.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/voelin-core/src/link/tests.rs b/crates/voelin-core/src/link/tests.rs index 67165c4..fe7efeb 100644 --- a/crates/voelin-core/src/link/tests.rs +++ b/crates/voelin-core/src/link/tests.rs @@ -1814,11 +1814,12 @@ async fn a_session_that_ends_during_the_connect_syncs_says_why() { tokio::time::sleep(Duration::from_millis(2)).await; }; voelin_proto::test_util::eventually(WAIT, "the three subscriptions", || { - handle - .requests() + let requests = handle.requests(); + let subscribed = requests .iter() .filter(|logged| matches!(&logged.request.op, Some(v1::request::Op::Subscribe(_)))) - .count() == 3 + .count(); + subscribed == 3 }) .await; for scope in [ScopeId::Home, ScopeId::Server(1)] {