Fix some of the clippy errors
This commit is contained in:
parent
e53650d02e
commit
8eec9c6759
6 changed files with 23 additions and 25 deletions
|
|
@ -20,12 +20,12 @@ where
|
|||
{
|
||||
async fn write_proto(&mut self, message: T) -> Result<(), ProtoWriteError> {
|
||||
let variant = message.variant();
|
||||
let mut data = message.serialize()?;
|
||||
let data = message.serialize()?;
|
||||
let length = data.len() as i32 + 4;
|
||||
|
||||
self.inner.write_u8(variant).await?;
|
||||
self.inner.write_i32(length).await?;
|
||||
self.inner.write_all(&mut data).await?;
|
||||
self.inner.write_all(&data).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue