clippy::needless_return
This commit is contained in:
parent
2a2a4da196
commit
e800bdbcfb
1 changed files with 4 additions and 6 deletions
|
|
@ -132,12 +132,10 @@ impl<'a, ByteBuf: 'a> UtMetadata<ByteBuf> {
|
|||
}
|
||||
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
|
||||
))),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue