From 2241da790128f413415385b8169484425567ff71 Mon Sep 17 00:00:00 2001
From: Filip Gospodinov <f@gospodinov.ch>
Date: Mon, 14 Jun 2021 06:59:34 +0200
Subject: [PATCH] juniper_rocket_async: bump to 0.5.0-rc.1 (#944)

---
 juniper_rocket_async/Cargo.toml | 2 +-
 juniper_rocket_async/src/lib.rs | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/juniper_rocket_async/Cargo.toml b/juniper_rocket_async/Cargo.toml
index 131ef2da..68a5fa3c 100644
--- a/juniper_rocket_async/Cargo.toml
+++ b/juniper_rocket_async/Cargo.toml
@@ -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]
diff --git a/juniper_rocket_async/src/lib.rs b/juniper_rocket_async/src/lib.rs
index ee5573dd..4d2ab9b1 100644
--- a/juniper_rocket_async/src/lib.rs
+++ b/juniper_rocket_async/src/lib.rs
@@ -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