mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-22 00:00:17 +02:00
Make clippy happy (#3350)
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user