Rustfmt
This commit is contained in:
parent
b0f9ebb170
commit
c7d233a44a
|
@ -107,12 +107,13 @@ where
|
|||
|
||||
async fn from_request(req: &mut RequestParts<B>) -> Result<Self, Self::Rejection> {
|
||||
if let (&Method::GET, uri) = (req.method(), req.uri()) {
|
||||
let res = async_graphql::http::parse_query_string(uri.query().unwrap_or_default()).map_err(|err| {
|
||||
ParseRequestError::Io(std::io::Error::new(
|
||||
ErrorKind::Other,
|
||||
format!("failed to parse graphql request from uri query: {}", err),
|
||||
))
|
||||
});
|
||||
let res = async_graphql::http::parse_query_string(uri.query().unwrap_or_default())
|
||||
.map_err(|err| {
|
||||
ParseRequestError::Io(std::io::Error::new(
|
||||
ErrorKind::Other,
|
||||
format!("failed to parse graphql request from uri query: {}", err),
|
||||
))
|
||||
});
|
||||
Ok(Self(async_graphql::BatchRequest::Single(res?), PhantomData))
|
||||
} else {
|
||||
let content_type = req
|
||||
|
|
Loading…
Reference in New Issue
Block a user