1
0
mirror of https://github.com/actix/examples synced 2025-06-27 01:27:43 +02:00

chore: edition 2024

This commit is contained in:
Rob Ede
2025-03-11 01:42:01 +00:00
parent fed7127644
commit a7527d72f3
75 changed files with 249 additions and 254 deletions

View File

@ -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(),
};