From 1dd85661bdef8939c40b49e512c4885255516f27 Mon Sep 17 00:00:00 2001 From: Apoorv Kothari Date: Mon, 29 Jan 2024 16:57:51 -0800 Subject: [PATCH] https://github.com/aws/s2n-quic/issues/1752 1750 --- quic/s2n-quic-transport/src/stream/api.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/quic/s2n-quic-transport/src/stream/api.rs b/quic/s2n-quic-transport/src/stream/api.rs index 6ec07519db..eac98e13a9 100644 --- a/quic/s2n-quic-transport/src/stream/api.rs +++ b/quic/s2n-quic-transport/src/stream/api.rs @@ -9,7 +9,7 @@ use core::{ fmt, future::Future, pin::Pin, - task::{Context, Poll}, + task::{ready, Context, Poll}, }; pub use s2n_quic_core::{ application, @@ -80,15 +80,6 @@ impl Drop for State { } } -macro_rules! ready { - ($e:expr $(,)?) => { - match $e { - core::task::Poll::Ready(t) => t, - core::task::Poll::Pending => return core::task::Poll::Pending, - } - }; -} - macro_rules! tx_stream_apis { () => { /// Enqueues a chunk of data for sending it towards the peer.