Skip to content

Commit

Permalink
fix clippy warn
Browse files Browse the repository at this point in the history
  • Loading branch information
giangndm authored Oct 4, 2024
1 parent 92cbe7e commit 7ac64d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/protocol/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ pub async fn write_buf<W: AsyncWrite + Send + Unpin, const MAX_SIZE: usize>(
let len_buf = (data_buf.len() as u16).to_be_bytes();

writer.write_all(&len_buf).await?;
writer.write_all(&data_buf).await?;
writer.write_all(data_buf).await?;
Ok(())
}

0 comments on commit 7ac64d6

Please sign in to comment.