Skip to content

Commit 4445e73

Browse files
committed
refactor(client): fix unused Pin import without http2
1 parent 7390f02 commit 4445e73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/dispatch.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ use std::future::Future;
44
use futures_util::FutureExt;
55
use tokio::sync::{mpsc, oneshot};
66

7-
use crate::common::{task, Pin, Poll};
7+
use crate::common::{task, Poll};
8+
#[cfg(feature = "http2")]
9+
use crate::common::Pin;
810

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

0 commit comments

Comments
 (0)