Skip to content

Commit c6ebc4e

Browse files
authored
codec: use tokio assert_ready macro (#788)
1 parent bdb56a8 commit c6ebc4e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

actix-codec/tests/test_framed_sink.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,6 @@ macro_rules! bilateral {
2323
}};
2424
}
2525

26-
macro_rules! assert_ready {
27-
($e:expr) => {{
28-
use core::task::Poll::*;
29-
match $e {
30-
Ready(v) => v,
31-
Pending => panic!("pending"),
32-
}
33-
}};
34-
($e:expr, $($msg:tt),+) => {{
35-
use core::task::Poll::*;
36-
match $e {
37-
Ready(v) => v,
38-
Pending => {
39-
let msg = format_args!($($msg),+);
40-
panic!("pending; {}", msg)
41-
}
42-
}
43-
}};
44-
}
45-
4626
#[derive(Debug)]
4727
pub struct Bilateral {
4828
pub calls: VecDeque<io::Result<Vec<u8>>>,

0 commit comments

Comments
 (0)