File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
v_exchanges_api_generics/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- cargo-features = [" edition2024 " , " codegen-backend" ]
1+ cargo-features = [" codegen-backend" ]
22
33[package ]
44name = " v_exchanges"
Original file line number Diff line number Diff line change @@ -399,9 +399,9 @@ impl WebSocketMessage {
399399 fn from_message ( message : tungstenite:: Message ) -> Option < Self > {
400400 match message {
401401 tungstenite:: Message :: Text ( text) => Some ( Self :: Text ( text. to_string ( ) ) ) ,
402- tungstenite:: Message :: Binary ( data) => Some ( Self :: Binary ( data. into ( ) ) ) ,
403- tungstenite:: Message :: Ping ( data) => Some ( Self :: Ping ( data. into ( ) ) ) ,
404- tungstenite:: Message :: Pong ( data) => Some ( Self :: Pong ( data. into ( ) ) ) ,
402+ tungstenite:: Message :: Binary ( data) => Some ( Self :: Binary ( data. as_slice ( ) . to_owned ( ) ) ) ,
403+ tungstenite:: Message :: Ping ( data) => Some ( Self :: Ping ( data. as_slice ( ) . to_owned ( ) ) ) ,
404+ tungstenite:: Message :: Pong ( data) => Some ( Self :: Pong ( data. as_slice ( ) . to_owned ( ) ) ) ,
405405 tungstenite:: Message :: Close ( _) | tungstenite:: Message :: Frame ( _) => None ,
406406 }
407407 }
You can’t perform that action at this time.
0 commit comments