File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ impl TestApp {
7575 ) -> Result < ( ) , anyhow:: Error > {
7676 match message {
7777 WsIntegrationMessage :: Send ( msg) => websocket
78- . send ( Message :: Text ( msg. to_string ( ) ) )
78+ . send ( Message :: Text ( msg. to_string ( ) . into ( ) ) )
7979 . await
8080 . map_err ( |e| anyhow ! ( "Could not send message: {e}" ) )
8181 . map ( drop) ,
@@ -88,7 +88,7 @@ impl TestApp {
8888 None => Err ( anyhow ! ( "No message received" ) ) ,
8989 Some ( Err ( e) ) => Err ( anyhow ! ( "WebSocket error: {e}" ) ) ,
9090 Some ( Ok ( Message :: Text ( json) ) ) => {
91- let actual: serde_json:: Value = serde_json:: from_str ( & json)
91+ let actual: serde_json:: Value = serde_json:: from_str ( json. as_str ( ) )
9292 . map_err ( |e| anyhow ! ( "Cannot deserialize received message: {e}" ) ) ?;
9393 if actual != expected {
9494 return Err ( anyhow ! (
You can’t perform that action at this time.
0 commit comments