Skip to content

Commit 17d0d8a

Browse files
committed
Fix code
1 parent 5e97132 commit 17d0d8a

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

juniper_warp/Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,20 @@ juniper_graphql_ws = { version = "0.4.0", path = "../juniper_graphql_ws", featur
3838
log = { version = "0.4", optional = true }
3939
serde_json = "1.0.18"
4040
tokio = { version = "1.0", features = ["rt"] }
41-
warp = { version = "0.4.0", default-features = false }
42-
43-
# Fixes for `minimal-versions` check.
44-
# TODO: Try remove on upgrade of `warp` crate.
45-
headers = "0.3.8"
41+
warp = "0.4"
4642

4743
[dev-dependencies]
4844
async-stream = "0.3"
4945
env_logger = "0.11"
5046
futures = "0.3.22"
47+
http-body-util = "0.1"
5148
itertools = "0.14"
5249
juniper = { version = "0.16", path = "../juniper", features = ["expose-test-schema"] }
5350
log = "0.4"
5451
percent-encoding = "2.1"
5552
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
5653
url = "2.0"
54+
warp = { version = "0.4", features = ["test"] }
5755

5856
[lints.clippy]
5957
allow_attributes = "warn"

juniper_warp/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
expect(unused_crate_dependencies, reason = "examples and integration tests")
77
)]
88

9-
// TODO: Try remove on upgrade of `warp` crate.
10-
mod for_minimal_versions_check_only {
11-
use headers as _;
12-
}
13-
149
mod response;
1510
#[cfg(feature = "subscriptions")]
1611
pub mod subscriptions;

juniper_warp/tests/http_test_suite.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![expect(unused_crate_dependencies, reason = "integration tests")]
44

55
use futures::TryStreamExt as _;
6+
use http_body_util::BodyExt as _;
67
use itertools::Itertools as _;
78
use juniper::{
89
EmptyMutation, EmptySubscription, RootNode,
@@ -123,7 +124,8 @@ async fn into_test_response(resp: reply::Response) -> TestResponse {
123124
.unwrap_or_default();
124125

125126
let body = String::from_utf8(
126-
body.map_ok(|bytes| bytes.to_vec())
127+
body.into_data_stream()
128+
.map_ok(|bytes| bytes.to_vec())
127129
.try_concat()
128130
.await
129131
.unwrap(),

0 commit comments

Comments
 (0)