Skip to content

Commit 29d76d2

Browse files
committed
chore: use futures_util::ready
1 parent a5e34eb commit 29d76d2

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/client/legacy/pool.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ use std::task::{self, Poll};
1515
use std::time::{Duration, Instant};
1616

1717
use futures_channel::oneshot;
18+
use futures_util::ready;
1819
use tracing::{debug, trace};
1920

20-
use crate::common::{exec, exec::Exec, ready};
21+
use crate::common::exec::{self, Exec};
2122

2223
// FIXME: allow() required due to `impl Trait` leaking types to this lint
2324
#[allow(missing_debug_implementations)]

src/common/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
#![allow(missing_docs)]
22

3-
macro_rules! ready {
4-
($e:expr) => {
5-
match $e {
6-
std::task::Poll::Ready(v) => v,
7-
std::task::Poll::Pending => return std::task::Poll::Pending,
8-
}
9-
};
10-
}
11-
12-
pub(crate) use ready;
133
pub(crate) mod exec;
144
#[cfg(feature = "client")]
155
mod lazy;

0 commit comments

Comments
 (0)