Skip to content

Commit 2241da7

Browse files
authored
juniper_rocket_async: bump to 0.5.0-rc.1 (#944)
1 parent ae19938 commit 2241da7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

juniper_rocket_async/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repository = "https://github.com/graphql-rust/juniper"
1414
[dependencies]
1515
futures = "0.3.1"
1616
juniper = { version = "0.15.6", path = "../juniper", default-features = false }
17-
rocket = { git = "https://github.com/SergioBenitez/Rocket", branch = "master", default-features = false }
17+
rocket = { version = "0.5.0-rc.1", default-features = false }
1818
serde_json = "1.0.2"
1919

2020
[dev-dependencies]

juniper_rocket_async/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,10 @@ where
322322
{
323323
type Error = String;
324324

325-
async fn from_data(req: &'r Request<'_>, data: Data) -> data::Outcome<Self, Self::Error> {
325+
async fn from_data(
326+
req: &'r Request<'_>,
327+
data: Data<'r>,
328+
) -> data::Outcome<'r, Self, Self::Error> {
326329
use rocket::tokio::io::AsyncReadExt as _;
327330

328331
let content_type = req

0 commit comments

Comments
 (0)