diff options
| author | mat <github@matdoes.dev> | 2022-01-02 17:42:41 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-01-02 17:42:41 -0600 |
| commit | 394f996df27bedc68be6c1f9e9764e8f78ba6282 (patch) | |
| tree | a0a5b5ae17ae7e524fc04f844b7ffb63810861fc /azalea-protocol/src/write.rs | |
| parent | 45871fc01e212a50ac5e6268e4677f97f8fe5bb3 (diff) | |
| download | azalea-drasl-394f996df27bedc68be6c1f9e9764e8f78ba6282.tar.xz | |
fix random warnings
Diffstat (limited to 'azalea-protocol/src/write.rs')
| -rw-r--r-- | azalea-protocol/src/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/src/write.rs b/azalea-protocol/src/write.rs index 3898e74a..821ed6e8 100644 --- a/azalea-protocol/src/write.rs +++ b/azalea-protocol/src/write.rs @@ -17,7 +17,7 @@ fn packet_encoder<P: ProtocolPacket + std::fmt::Debug>(packet: &P) -> Result<Vec let mut buf = Vec::new(); buf.write_varint(packet.id() as i32) .map_err(|e| e.to_string())?; - packet.write(&mut buf); + packet.write(&mut buf).map_err(|e| e.to_string())?; if buf.len() > MAXIMUM_UNCOMPRESSED_LENGTH as usize { return Err(format!( "Packet too big (is {} bytes, should be less than {}): {:?}", |
