refactor(body): fix unused sync_wrapper when stream feature disabled (#2287)

This commit is contained in:
Sean McArthur
2020-09-21 13:57:58 -07:00
committed by GitHub
parent aea9c52808
commit 523d66a41f
7 changed files with 46 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ use futures_util::TryStreamExt;
use http::HeaderMap;
use http_body::{Body as HttpBody, SizeHint};
#[cfg(feature = "stream")]
use crate::common::sync_wrapper::SyncWrapper;
use crate::common::{task, watch, Future, Never, Pin, Poll};
use crate::proto::h2::ping;