diff --git a/juniper/src/lib.rs b/juniper/src/lib.rs index 6317f4c6..943b8d51 100644 --- a/juniper/src/lib.rs +++ b/juniper/src/lib.rs @@ -180,7 +180,7 @@ pub use crate::{ pub type BoxFuture<'a, T> = std::pin::Pin + 'a + Send>>; #[cfg(feature = "async")] -pub use crate::types::async_await::{GraphQLTypeAsync}; +pub use crate::types::async_await::GraphQLTypeAsync; /// An error that prevented query execution #[derive(Debug, PartialEq)] diff --git a/juniper/src/types/async_await.rs b/juniper/src/types/async_await.rs index 4297c630..ec11172f 100644 --- a/juniper/src/types/async_await.rs +++ b/juniper/src/types/async_await.rs @@ -1,9 +1,12 @@ +use crate::{ + ast::{Directive, FromInputValue, InputValue, Selection}, + value::{Object, ScalarRefValue, ScalarValue, Value}, +}; -use crate::ast::{Directive, FromInputValue, InputValue, Selection}; -use crate::value::{Object, ScalarRefValue, ScalarValue, Value}; - -use crate::executor::{ExecutionResult, Executor}; -use crate::parser::Spanning; +use crate::{ + executor::{ExecutionResult, Executor}, + parser::Spanning, +}; use crate::BoxFuture; diff --git a/juniper_rocket/src/lib.rs b/juniper_rocket/src/lib.rs index 891a3723..88cf619d 100644 --- a/juniper_rocket/src/lib.rs +++ b/juniper_rocket/src/lib.rs @@ -42,14 +42,14 @@ Check the LICENSE file for details. use std::{ error::Error, - io::Cursor, + io::{Cursor, Read}, }; use rocket::{ - data::{FromDataFuture, FromDataSimple}, + data::{FromDataSimple, Outcome as FromDataOutcome}, http::{ContentType, RawStr, Status}, request::{FormItems, FromForm, FromFormValue}, - response::{content, Responder, Response, ResultFuture}, + response::{content, Responder, Response}, Data, Outcome::{Failure, Forward, Success}, Request,