juniper_rocket_async: bump to 0.5.0-rc.1 (#944)

This commit is contained in:
Filip Gospodinov 2021-06-14 06:59:34 +02:00 committed by GitHub
parent ae199387fc
commit 2241da7901
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -14,7 +14,7 @@ repository = "https://github.com/graphql-rust/juniper"
[dependencies]
futures = "0.3.1"
juniper = { version = "0.15.6", path = "../juniper", default-features = false }
rocket = { git = "https://github.com/SergioBenitez/Rocket", branch = "master", default-features = false }
rocket = { version = "0.5.0-rc.1", default-features = false }
serde_json = "1.0.2"
[dev-dependencies]

View file

@ -322,7 +322,10 @@ where
{
type Error = String;
async fn from_data(req: &'r Request<'_>, data: Data) -> data::Outcome<Self, Self::Error> {
async fn from_data(
req: &'r Request<'_>,
data: Data<'r>,
) -> data::Outcome<'r, Self, Self::Error> {
use rocket::tokio::io::AsyncReadExt as _;
let content_type = req