aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-01 23:35:30 -0500
committermat <github@matdoes.dev>2022-05-01 23:38:55 -0500
commitdedcd0de8f017a00645b31cfdc1819a4e8da0850 (patch)
tree7005291337dcc5a9cd1c5bb71668b511a6834d23 /azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs
parentdb2fcecdc38ea7a43b098c6282dd906b73981f97 (diff)
downloadazalea-drasl-dedcd0de8f017a00645b31cfdc1819a4e8da0850.tar.xz
impl Write instead of Vec<u8> for consistency
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs b/azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs
index 6e0aae29..82f34f96 100644
--- a/azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_update_attributes_packet.rs
@@ -1,7 +1,7 @@
use crate::mc_buf::{McBufReadable, McBufWritable, Readable, Writable};
use azalea_core::resource_location::ResourceLocation;
use packet_macros::{GamePacket, McBufReadable, McBufWritable};
-use std::io::Read;
+use std::io::{Read, Write};
use uuid::Uuid;
#[derive(Clone, Debug, GamePacket)]
@@ -44,7 +44,7 @@ impl McBufReadable for Operation {
}
impl McBufWritable for Operation {
- fn write_into(&self, buf: &mut Vec<u8>) -> Result<(), std::io::Error> {
+ fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
buf.write_byte(*self as u8)?;
Ok(())
}