Skip to content

Commit

Permalink
chore: use futures_utill::ready
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Sep 20, 2023
1 parent eacb82d commit d424b91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/client/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ use std::time::{Duration, Instant};
use tokio::time::{Duration, Instant, Interval};

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

use crate::common::{exec::Exec, ready};
use crate::common::exec::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 mod exec;
#[cfg(feature = "client")]
mod lazy;
Expand Down

0 comments on commit d424b91

Please sign in to comment.