From 01ac3e2cd869104791764f2e8cbb0f5c18d6d709 Mon Sep 17 00:00:00 2001 From: Rayhaan Jaufeerally Date: Thu, 8 Oct 2026 00:10:32 +0200 Subject: [PATCH] Test peer: no bail! in expression position Newer compilers warn of the macro's trailing semicolon there, and CI fails on warnings. Co-Authored-By: Claude Fable 5.1 --- crates/integration-tests/src/test_peer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/integration-tests/src/test_peer.rs b/crates/integration-tests/src/test_peer.rs index 685ec1d..1b99bb8 100644 --- a/crates/integration-tests/src/test_peer.rs +++ b/crates/integration-tests/src/test_peer.rs @@ -86,7 +86,7 @@ impl TestPeer { pub async fn recv_within(&mut self, wait: Duration) -> Result { match tokio::time::timeout(wait, self.recv_untimed()).await { Ok(message) => message, - Err(_) => bail!("no message from the server within {wait:?}"), + Err(_) => Err(eyre::eyre!("no message from the server within {wait:?}")), } } @@ -130,7 +130,7 @@ impl TestPeer { match self.recv().await? { Message::Notification(n) => return Ok(n), Message::KeepAlive => {} - other => bail!("expected NOTIFICATION, got {other:?}"), + other => return Err(eyre::eyre!("expected NOTIFICATION, got {other:?}")), } } }