diff --git a/crates/peer_binary_protocol/src/extended/ut_metadata.rs b/crates/peer_binary_protocol/src/extended/ut_metadata.rs index d2f7be3..56d7924 100644 --- a/crates/peer_binary_protocol/src/extended/ut_metadata.rs +++ b/crates/peer_binary_protocol/src/extended/ut_metadata.rs @@ -132,12 +132,10 @@ impl<'a, ByteBuf: 'a> UtMetadata { } Ok(UtMetadata::Reject(message.piece)) } - other => { - return Err(MessageDeserializeError::Other(anyhow::anyhow!( - "unrecognized ut_metadata message type {}", - other - ))) - } + other => Err(MessageDeserializeError::Other(anyhow::anyhow!( + "unrecognized ut_metadata message type {}", + other + ))), } } }