From d847f9bac1d2c51d03c5494e2b0552875f1c19d9 Mon Sep 17 00:00:00 2001 From: tyranron Date: Wed, 18 Dec 2024 17:09:04 +0100 Subject: [PATCH] Upd code --- juniper_axum/tests/ws_test_suite.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!(