From 8da581b89a94241815b5b65100258565eb8b8c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Oliveira?= Date: Wed, 23 Oct 2024 17:12:20 +0100 Subject: [PATCH] Apply suggestions from code review --- yamux/src/connection/closing.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yamux/src/connection/closing.rs b/yamux/src/connection/closing.rs index 41fc815..d4f8636 100644 --- a/yamux/src/connection/closing.rs +++ b/yamux/src/connection/closing.rs @@ -115,7 +115,7 @@ mod tests { _: &mut Context<'_>, _: &mut [u8], ) -> Poll> { - todo!() + unimplemented!() } } impl AsyncWrite for Socket { @@ -130,7 +130,7 @@ mod tests { } fn poll_flush(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll> { - todo!() + uniplemented!() } fn poll_close(mut self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll> { @@ -181,7 +181,7 @@ mod tests { &frame_close_ack, StreamCommand::CloseStream { ack: true }, )); - let pending_frames = vec![frame_pending.clone().into()]; + let pending_frames = vec![frame_pending.into()]; let mut socket = Socket { written: vec![], closed: false,