1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-16 06:10:26 +02:00

cargo: bump the patch group with 1 update (#1703)

Bumps the patch group with 1 update:
[tokio-websockets](https://github.com/Gelbpunkt/tokio-websockets).

Updates `tokio-websockets` from 0.5.0 to 0.5.1

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dustin J. Mitchell <djmitche@google.com>
This commit is contained in:
dependabot[bot]
2024-01-17 09:04:52 -05:00
committed by GitHub
parent e785962ca4
commit 3b17afd042
3 changed files with 6 additions and 4 deletions

View File

@ -7,4 +7,4 @@ edition = "2021"
futures-util = { version = "0.3.30", features = ["sink"] }
http = "1.0.0"
tokio = { version = "1.28.1", features = ["full"] }
tokio-websockets = { version = "0.5.0", features = ["client", "fastrand", "server", "sha1_smol"] }
tokio-websockets = { version = "0.5.1", features = ["client", "fastrand", "server", "sha1_smol"] }

View File

@ -31,7 +31,9 @@ async fn handle_connection(
) -> Result<(), Box<dyn Error + Send + Sync>> {
// ANCHOR_END: handle_connection
ws_stream.send(Message::text("Welcome to chat! Type a message".into())).await?;
ws_stream
.send(Message::text("Welcome to chat! Type a message".to_string()))
.await?;
let mut bcast_rx = bcast_tx.subscribe();
// A continuous loop for concurrently performing two tasks: (1) receiving