Skip to content

Commit abbd511

Browse files
committed
chore: fix clippy warnings for Rust 1.56
1 parent 74fce7e commit abbd511

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

node/src/actors/session/handlers.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,9 @@ impl StreamHandler<Result<BytesMut, Error>> for Session {
189189
try_consolidate_session(self, ctx);
190190
}
191191
Err(err) => {
192-
if let HandshakeError::DifferentTimestamp { .. } = err {
193-
// Remove this address from tried bucket and ice it
194-
self.remove_and_ice_peer();
195-
} else if let HandshakeError::DifferentEpoch { .. } = err {
192+
if let HandshakeError::DifferentTimestamp { .. }
193+
| HandshakeError::DifferentEpoch { .. } = err
194+
{
196195
// Remove this address from tried bucket and ice it
197196
self.remove_and_ice_peer();
198197
} else if session_type == SessionType::Feeler

0 commit comments

Comments
 (0)