Skip to content

Commit e855f9e

Browse files
Fix errors in the examples caused by Utf8Error
1 parent 21c5d19 commit e855f9e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/autobahn-client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async fn main() {
4444
for case in 1..=total {
4545
if let Err(e) = run_test(case).await {
4646
match e {
47-
Error::ConnectionClosed | Error::Protocol(_) | Error::Utf8 => (),
47+
Error::ConnectionClosed | Error::Protocol(_) | Error::Utf8(_) => (),
4848
err => error!("Testcase failed: {}", err),
4949
}
5050
}

examples/autobahn-server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use tokio_tungstenite::{
1010
async fn accept_connection(peer: SocketAddr, stream: TcpStream) {
1111
if let Err(e) = handle_connection(peer, stream).await {
1212
match e {
13-
Error::ConnectionClosed | Error::Protocol(_) | Error::Utf8 => (),
13+
Error::ConnectionClosed | Error::Protocol(_) | Error::Utf8(_) => (),
1414
err => error!("Error processing connection: {}", err),
1515
}
1616
}

examples/interval-server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use tokio_tungstenite::{
1010
async fn accept_connection(peer: SocketAddr, stream: TcpStream) {
1111
if let Err(e) = handle_connection(peer, stream).await {
1212
match e {
13-
Error::ConnectionClosed | Error::Protocol(_) | Error::Utf8 => (),
13+
Error::ConnectionClosed | Error::Protocol(_) | Error::Utf8(_) => (),
1414
err => error!("Error processing connection: {}", err),
1515
}
1616
}

0 commit comments

Comments
 (0)