mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
chore: edition 2024
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "websocket-chat-actorless-example"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[dependencies]
|
||||
actix-files.workspace = true
|
||||
|
@ -5,8 +5,8 @@ use std::{
|
||||
|
||||
use actix_ws::AggregatedMessage;
|
||||
use futures_util::{
|
||||
future::{select, Either},
|
||||
StreamExt as _,
|
||||
future::{Either, select},
|
||||
};
|
||||
use tokio::{sync::mpsc, time::interval};
|
||||
|
||||
@ -182,7 +182,7 @@ async fn process_text_msg(
|
||||
} else {
|
||||
// prefix message with our name, if assigned
|
||||
let msg = match name {
|
||||
Some(ref name) => format!("{name}: {msg}"),
|
||||
Some(name) => format!("{name}: {msg}"),
|
||||
None => msg.to_owned(),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user