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 <noreply@anthropic.com>
This commit is contained in:
1 parent
3608897245
commit
01ac3e2cd8
1 file changed
+2
-2
@@ -86,7 +86,7 @@ impl TestPeer {
|
||||
pub async fn recv_within(&mut self, wait: Duration) -> Result<Message> {
|
||||
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:?}")),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user