Skip to content

Commit

Permalink
run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy committed Dec 12, 2023
1 parent 1624623 commit 8dfffd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/peer/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async fn retainer<S: Signer>(
let message = match message {
Ok(message) => message,
Err(err) => {
if let Err(_) = close.send(err).await {
if close.send(err).await.is_err() {
log::error!("failed to notify of socket connection loss");
}
return;
Expand Down

0 comments on commit 8dfffd8

Please sign in to comment.