Skip to content

Commit

Permalink
chore: fix clippy (#9163)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored Jun 28, 2024
1 parent 530e7e8 commit 472093a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/net/eth-wire/src/p2pstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,10 @@ where
//
// It's possible we already tried to RLP decode this, but it was snappy
// compressed, so we need to RLP decode it again.
let reason = DisconnectReason::decode(&mut &decompress_buf[1..]).map_err(|err| {
let reason = DisconnectReason::decode(&mut &decompress_buf[1..]).inspect_err(|err| {
debug!(
%err, msg=%hex::encode(&decompress_buf[1..]), "Failed to decode disconnect message from peer"
);
err
})?;
return Poll::Ready(Some(Err(P2PStreamError::Disconnected(reason))))
}
Expand Down

0 comments on commit 472093a

Please sign in to comment.