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/packet-macros/src | |
| parent | 45871fc01e212a50ac5e6268e4677f97f8fe5bb3 (diff) | |
| download | azalea-drasl-394f996df27bedc68be6c1f9e9764e8f78ba6282.tar.xz | |
fix random warnings
Diffstat (limited to 'azalea-protocol/packet-macros/src')
| -rw-r--r-- | azalea-protocol/packet-macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/packet-macros/src/lib.rs b/azalea-protocol/packet-macros/src/lib.rs index ba963111..957515c4 100644 --- a/azalea-protocol/packet-macros/src/lib.rs +++ b/azalea-protocol/packet-macros/src/lib.rs @@ -24,7 +24,7 @@ fn as_packet_derive( // do a different buf.write_* for each field depending on the type // if it's a string, use buf.write_string match field_type { - syn::Type::Path(syn::TypePath { path, .. }) => { + syn::Type::Path(_) => { if f.attrs.iter().any(|attr| attr.path.is_ident("varint")) { quote! { crate::mc_buf::McBufVarintWritable::varint_write_into(&self.#field_name, buf)?; @@ -52,7 +52,7 @@ fn as_packet_derive( // do a different buf.write_* for each field depending on the type // if it's a string, use buf.write_string match field_type { - syn::Type::Path(syn::TypePath { path, .. }) => { + syn::Type::Path(_) => { if f.attrs.iter().any(|a| a.path.is_ident("varint")) { quote! { let #field_name = crate::mc_buf::McBufVarintReadable::varint_read_into(buf).await?; |
