Skip to content

Commit

Permalink
chore: use futures_util::ready (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jan 6, 2024
1 parent 43ddd6d commit b96757e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/client/legacy/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ use std::task::{self, Poll};
use std::time::{Duration, Instant};

use futures_channel::oneshot;
use futures_util::ready;
use tracing::{debug, trace};

use crate::common::{exec, exec::Exec, ready};
use crate::common::exec::{self, Exec};

// FIXME: allow() required due to `impl Trait` leaking types to this lint
#[allow(missing_debug_implementations)]
Expand Down
10 changes: 0 additions & 10 deletions src/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
#![allow(missing_docs)]

macro_rules! ready {
($e:expr) => {
match $e {
std::task::Poll::Ready(v) => v,
std::task::Poll::Pending => return std::task::Poll::Pending,
}
};
}

pub(crate) use ready;
pub(crate) mod exec;
#[cfg(feature = "client")]
mod lazy;
Expand Down

0 comments on commit b96757e

Please sign in to comment.