clippy::needless_return

This commit is contained in:
Cyril Plisko 2023-08-08 11:04:08 +03:00
parent 2a2a4da196
commit e800bdbcfb

View file

@ -132,12 +132,10 @@ impl<'a, ByteBuf: 'a> UtMetadata<ByteBuf> {
} }
Ok(UtMetadata::Reject(message.piece)) Ok(UtMetadata::Reject(message.piece))
} }
other => { other => Err(MessageDeserializeError::Other(anyhow::anyhow!(
return Err(MessageDeserializeError::Other(anyhow::anyhow!( "unrecognized ut_metadata message type {}",
"unrecognized ut_metadata message type {}", other
other ))),
)))
}
} }
} }
} }