Skip to content

Commit b96757e

Browse files
authored
chore: use futures_util::ready (#35)
1 parent 43ddd6d commit b96757e

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/client/legacy/pool.rs

+2-1
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

-10
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)