From 73333035bd430f9c81831eba51ceb731cef36659 Mon Sep 17 00:00:00 2001 From: Sunli Date: Fri, 18 Sep 2020 15:14:40 +0800 Subject: [PATCH] Fix compiling without features --- src/types/upload.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/types/upload.rs b/src/types/upload.rs index e97de74e..9630247a 100644 --- a/src/types/upload.rs +++ b/src/types/upload.rs @@ -1,7 +1,5 @@ use crate::parser::types::UploadValue; use crate::{registry, InputValueError, InputValueResult, InputValueType, Type, Value}; -use blocking::Unblock; -use futures::AsyncRead; use std::borrow::Cow; use std::io::Read; @@ -72,8 +70,8 @@ impl Upload { #[cfg(feature = "unblock")] #[cfg_attr(feature = "nightly", doc(cfg(feature = "unblock")))] /// Convert to a `AsyncRead`. - pub fn into_async_read(self) -> impl AsyncRead + Sync + Send + 'static { - Unblock::new(self.0.content) + pub fn into_async_read(self) -> impl futures::AsyncRead + Sync + Send + 'static { + blocking::Unblock::new(self.0.content) } }