diff options
| author | mat <github@matdoes.dev> | 2022-06-25 16:40:12 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-25 16:40:12 -0500 |
| commit | 978880b756aa052226f77c21e8e9de9b40070152 (patch) | |
| tree | 0f66b76beb4b8eac36a4c9c84cb3d5d8ed8bac35 /azalea-protocol | |
| parent | 460bdfb8bbaf0969df6451a00fc3de214728aec0 (diff) | |
| download | azalea-drasl-978880b756aa052226f77c21e8e9de9b40070152.tar.xz | |
Fix warnings
Diffstat (limited to 'azalea-protocol')
3 files changed, 4 insertions, 5 deletions
diff --git a/azalea-protocol/packet-macros/src/lib.rs b/azalea-protocol/packet-macros/src/lib.rs index 2e40cbd1..e1ed80fa 100755 --- a/azalea-protocol/packet-macros/src/lib.rs +++ b/azalea-protocol/packet-macros/src/lib.rs @@ -1,9 +1,9 @@ use proc_macro::TokenStream; -use quote::{quote, ToTokens}; +use quote::quote; use syn::{ self, braced, parse::{Parse, ParseStream, Result}, - parse_macro_input, Data, DeriveInput, FieldsNamed, Ident, LitInt, Token, + parse_macro_input, DeriveInput, FieldsNamed, Ident, LitInt, Token, }; fn as_packet_derive(input: TokenStream, state: proc_macro2::TokenStream) -> TokenStream { diff --git a/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs index ee3f21a2..0e680701 100755 --- a/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_declare_commands_packet.rs @@ -1,4 +1,3 @@ -use super::GamePacket; use azalea_buf::McBuf; use azalea_buf::McBufVarReadable; use azalea_buf::{McBufReadable, McBufWritable, Readable, Writable}; @@ -236,7 +235,7 @@ impl McBufReadable for BrigadierNodeStub { } impl McBufWritable for BrigadierNodeStub { - fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { + fn write_into(&self, _buf: &mut impl Write) -> Result<(), std::io::Error> { todo!() } } diff --git a/azalea-protocol/src/packets/game/clientbound_level_particles_packet.rs b/azalea-protocol/src/packets/game/clientbound_level_particles_packet.rs index a9ce57ad..53975cca 100644 --- a/azalea-protocol/src/packets/game/clientbound_level_particles_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_level_particles_packet.rs @@ -51,7 +51,7 @@ impl McBufReadable for ClientboundLevelParticlesPacket { } impl McBufWritable for ClientboundLevelParticlesPacket { - fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> { + fn write_into(&self, _buf: &mut impl Write) -> Result<(), std::io::Error> { todo!(); } } |
