mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-24 12:13:05 +00:00
Use ready!() from std
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::{
|
||||
future::{Future, poll_fn},
|
||||
io,
|
||||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
task::{Context, Poll, ready},
|
||||
};
|
||||
|
||||
use bytes::Bytes;
|
||||
|
||||
@@ -3,7 +3,7 @@ use std::{
|
||||
io,
|
||||
pin::Pin,
|
||||
sync::Arc,
|
||||
task::{Context, Poll},
|
||||
task::{Context, Poll, ready},
|
||||
time::Instant,
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ use std::{
|
||||
io,
|
||||
pin::Pin,
|
||||
sync::Arc,
|
||||
task::{Context, Poll},
|
||||
task::{Context, Poll, ready},
|
||||
time::Instant,
|
||||
};
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::{
|
||||
future::Future,
|
||||
io,
|
||||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
task::{Context, Poll, ready},
|
||||
};
|
||||
|
||||
use bytes::Bytes;
|
||||
|
||||
Reference in New Issue
Block a user