Skip to content

Commit 9cc868b

Browse files
committed
fix: fix build errors
1 parent 9f50bae commit 9cc868b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

v_exchanges/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cargo-features = ["edition2024", "codegen-backend"]
1+
cargo-features = ["codegen-backend"]
22

33
[package]
44
name = "v_exchanges"

v_exchanges_api_generics/src/websocket.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)