Use ready!() from std

This commit is contained in:
Dirkjan Ochtman
2025-02-21 10:16:18 +01:00
parent a8807131e4
commit 04d8781964
6 changed files with 5 additions and 14 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ use std::{
net::{IpAddr, SocketAddr},
pin::Pin,
sync::Arc,
task::{Context, Poll, Waker},
task::{Context, Poll, Waker, ready},
};
use bytes::Bytes;
-9
View File
@@ -43,15 +43,6 @@
use std::sync::Arc;
macro_rules! ready {
($e:expr $(,)?) => {
match $e {
std::task::Poll::Ready(t) => t,
std::task::Poll::Pending => return std::task::Poll::Pending,
}
};
}
mod connection;
mod endpoint;
mod incoming;
+1 -1
View File
@@ -2,7 +2,7 @@ use std::{
future::{Future, poll_fn},
io,
pin::Pin,
task::{Context, Poll},
task::{Context, Poll, ready},
};
use bytes::Bytes;
+1 -1
View File
@@ -3,7 +3,7 @@ use std::{
io,
pin::Pin,
sync::Arc,
task::{Context, Poll},
task::{Context, Poll, ready},
time::Instant,
};
+1 -1
View File
@@ -3,7 +3,7 @@ use std::{
io,
pin::Pin,
sync::Arc,
task::{Context, Poll},
task::{Context, Poll, ready},
time::Instant,
};
+1 -1
View File
@@ -2,7 +2,7 @@ use std::{
future::Future,
io,
pin::Pin,
task::{Context, Poll},
task::{Context, Poll, ready},
};
use bytes::Bytes;