Make clippy happy (#3350)

This commit is contained in:
Jonas Platte
2025-09-28 19:15:42 +02:00
parent abe98474e1
commit 01ecea0e33
8 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -129,13 +129,13 @@ fn process_message(msg: Message, who: usize) -> ControlFlow<(), ()> {
println!(">>> {who} got str: {t:?}");
}
Message::Binary(d) => {
println!(">>> {} got {} bytes: {:?}", who, d.len(), d);
println!(">>> {who} got {} bytes: {d:?}", d.len());
}
Message::Close(c) => {
if let Some(cf) = c {
println!(
">>> {} got close with code {} and reason `{}`",
who, cf.code, cf.reason
">>> {who} got close with code {} and reason `{}`",
cf.code, cf.reason
);
} else {
println!(">>> {who} somehow got close message without CloseFrame");
+3 -3
View File
@@ -220,13 +220,13 @@ fn process_message(msg: Message, who: SocketAddr) -> ControlFlow<(), ()> {
println!(">>> {who} sent str: {t:?}");
}
Message::Binary(d) => {
println!(">>> {} sent {} bytes: {:?}", who, d.len(), d);
println!(">>> {who} sent {} bytes: {d:?}", d.len());
}
Message::Close(c) => {
if let Some(cf) = c {
println!(
">>> {} sent close with code {} and reason `{}`",
who, cf.code, cf.reason
">>> {who} sent close with code {} and reason `{}`",
cf.code, cf.reason
);
} else {
println!(">>> {who} somehow sent close message without CloseFrame");