aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/mc_buf/write.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-01-02 17:42:41 -0600
committermat <github@matdoes.dev>2022-01-02 17:42:41 -0600
commit394f996df27bedc68be6c1f9e9764e8f78ba6282 (patch)
treea0a5b5ae17ae7e524fc04f844b7ffb63810861fc /azalea-protocol/src/mc_buf/write.rs
parent45871fc01e212a50ac5e6268e4677f97f8fe5bb3 (diff)
downloadazalea-drasl-394f996df27bedc68be6c1f9e9764e8f78ba6282.tar.xz
fix random warnings
Diffstat (limited to 'azalea-protocol/src/mc_buf/write.rs')
-rw-r--r--azalea-protocol/src/mc_buf/write.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/mc_buf/write.rs b/azalea-protocol/src/mc_buf/write.rs
index 14dac9d1..6fbe6eab 100644
--- a/azalea-protocol/src/mc_buf/write.rs
+++ b/azalea-protocol/src/mc_buf/write.rs
@@ -265,14 +265,14 @@ impl McBufWritable for GameType {
// Option<GameType>
impl McBufWritable for Option<GameType> {
fn write_into(&self, buf: &mut Vec<u8>) -> Result<(), std::io::Error> {
- buf.write_byte(GameType::to_optional_id(&self) as u8)
+ buf.write_byte(GameType::to_optional_id(self) as u8)
}
}
// Vec<ResourceLocation>
impl McBufWritable for Vec<ResourceLocation> {
fn write_into(&self, buf: &mut Vec<u8>) -> Result<(), std::io::Error> {
- buf.write_list(&self, |buf, resource_location| {
+ buf.write_list(self, |buf, resource_location| {
buf.write_resource_location(resource_location)
})
}