Skip to content

Commit

Permalink
refactor(client): fix unused Pin import without http2
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Feb 5, 2021
1 parent 7390f02 commit 4445e73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ use std::future::Future;
use futures_util::FutureExt;
use tokio::sync::{mpsc, oneshot};

use crate::common::{task, Pin, Poll};
use crate::common::{task, Poll};
#[cfg(feature = "http2")]
use crate::common::Pin;

pub(crate) type RetryPromise<T, U> = oneshot::Receiver<Result<U, (crate::Error, Option<T>)>>;
pub(crate) type Promise<T> = oneshot::Receiver<Result<T, crate::Error>>;
Expand Down

0 comments on commit 4445e73

Please sign in to comment.