From 4445e736ba45d4c91d2a4b2ad2aaac02ea7cf710 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Fri, 5 Feb 2021 15:38:48 -0800 Subject: [PATCH] refactor(client): fix unused Pin import without http2 --- src/client/dispatch.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index 17cfbf4f8c..b42a65352f 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -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 = oneshot::Receiver)>>; pub(crate) type Promise = oneshot::Receiver>;