From bbb2df4c2817932aa8714405f03be5d7bde72c53 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 12 Jan 2026 15:29:11 +0900 Subject: [PATCH] codec: use tokio assert_ready macro --- actix-codec/tests/test_framed_sink.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/actix-codec/tests/test_framed_sink.rs b/actix-codec/tests/test_framed_sink.rs index 280fec3d..063fbfa3 100644 --- a/actix-codec/tests/test_framed_sink.rs +++ b/actix-codec/tests/test_framed_sink.rs @@ -23,26 +23,6 @@ macro_rules! bilateral { }}; } -macro_rules! assert_ready { - ($e:expr) => {{ - use core::task::Poll::*; - match $e { - Ready(v) => v, - Pending => panic!("pending"), - } - }}; - ($e:expr, $($msg:tt),+) => {{ - use core::task::Poll::*; - match $e { - Ready(v) => v, - Pending => { - let msg = format_args!($($msg),+); - panic!("pending; {}", msg) - } - } - }}; -} - #[derive(Debug)] pub struct Bilateral { pub calls: VecDeque>>,