From a925ccb1937023c1a1da4826de46cdc2543fc778 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:35:36 +0000 Subject: [PATCH] Update `tokio-tungstenite` crate from 0.25 to 0.26 version (#1299) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kai Ren --- juniper_axum/Cargo.toml | 2 +- juniper_axum/tests/ws_test_suite.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/juniper_axum/Cargo.toml b/juniper_axum/Cargo.toml index 0fbba58dd..0b664775c 100644 --- a/juniper_axum/Cargo.toml +++ b/juniper_axum/Cargo.toml @@ -43,7 +43,7 @@ futures = "0.3.22" juniper = { version = "0.16", path = "../juniper", features = ["expose-test-schema"] } tokio = { version = "1.20", features = ["macros", "net", "rt-multi-thread", "time"] } tokio-stream = "0.1" -tokio-tungstenite = "0.25" +tokio-tungstenite = "0.26" tower-service = "0.3" tracing = "0.1" tracing-subscriber = "0.3" diff --git a/juniper_axum/tests/ws_test_suite.rs b/juniper_axum/tests/ws_test_suite.rs index bd5a0886e..f60f671e1 100644 --- a/juniper_axum/tests/ws_test_suite.rs +++ b/juniper_axum/tests/ws_test_suite.rs @@ -88,7 +88,7 @@ impl TestApp { None => Err(anyhow!("No message received")), Some(Err(e)) => Err(anyhow!("WebSocket error: {e}")), Some(Ok(Message::Text(json))) => { - let actual: serde_json::Value = serde_json::from_str(json.as_str()) + let actual: serde_json::Value = serde_json::from_str(&*json) .map_err(|e| anyhow!("Cannot deserialize received message: {e}"))?; if actual != expected { return Err(anyhow!( @@ -101,7 +101,7 @@ impl TestApp { Some(Ok(Message::Close(Some(frame)))) => { let actual = serde_json::json!({ "code": u16::from(frame.code), - "description": frame.reason, + "description": *frame.reason, }); if actual != expected { return Err(anyhow!(