refactor(client): fix unused Pin import without http2

This commit is contained in:
Sean McArthur
2021-02-05 15:38:48 -08:00
parent 7390f026d7
commit 4445e736ba

View File

@@ -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>>;