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))
|
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
|
))),
|
||||||
)))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue