Skip to content

Commit 0eefa27

Browse files
Bump version
1 parent 2d23077 commit 0eefa27

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.26.0
2+
3+
- Update `tungstenite` to `0.26.0` ([breaking changes](https://github.com/snapview/tungstenite-rs/blob/master/CHANGELOG.md#0260)).
4+
15
# 0.25.0
26

37
- Update `tungstenite` to `0.25.0` ([important updates!](https://github.com/snapview/tungstenite-rs/blob/master/CHANGELOG.md#0250)).

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ keywords = ["websocket", "io", "web"]
66
authors = ["Daniel Abramov <[email protected]>", "Alexey Galakhov <[email protected]>"]
77
license = "MIT"
88
homepage = "https://github.com/snapview/tokio-tungstenite"
9-
documentation = "https://docs.rs/tokio-tungstenite/0.25.0"
9+
documentation = "https://docs.rs/tokio-tungstenite/0.26.0"
1010
repository = "https://github.com/snapview/tokio-tungstenite"
11-
version = "0.25.0"
11+
version = "0.26.0"
1212
edition = "2018"
1313
rust-version = "1.63"
1414
include = ["examples/**/*", "src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
@@ -34,7 +34,7 @@ futures-util = { version = "0.3.28", default-features = false, features = ["sink
3434
tokio = { version = "1.0.0", default-features = false, features = ["io-util"] }
3535

3636
[dependencies.tungstenite]
37-
version = "0.25.0"
37+
version = "0.26.0"
3838
default-features = false
3939

4040
[dependencies.native-tls-crate]

examples/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async fn main() {
3333
let ws_to_stdout = {
3434
read.for_each(|message| async {
3535
let data = message.unwrap().into_data();
36-
tokio::io::stdout().write_all(&data.as_slice()).await.unwrap();
36+
tokio::io::stdout().write_all(&data).await.unwrap();
3737
})
3838
};
3939

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,10 @@ impl<S> WebSocketStream<S> {
269269
}
270270

271271
/// Close the underlying web socket
272-
pub async fn close(&mut self, msg: Option<CloseFrame<'_>>) -> Result<(), WsError>
272+
pub async fn close(&mut self, msg: Option<CloseFrame>) -> Result<(), WsError>
273273
where
274274
S: AsyncRead + AsyncWrite + Unpin,
275275
{
276-
let msg = msg.map(|msg| msg.into_owned());
277276
self.send(Message::Close(msg)).await
278277
}
279278
}

0 commit comments

Comments
 (0)