diff options
| author | mat <github@matdoes.dev> | 2022-04-30 23:11:18 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-30 23:11:18 -0500 |
| commit | 42ca37554c987f2bdeda596a18f5d3989c9fc0d7 (patch) | |
| tree | b96bdeced0127148354b97afc479354982882397 /azalea-protocol/packet-macros/src/lib.rs | |
| parent | 8313952541c049615af944b87b80c686bbf62073 (diff) | |
| download | azalea-drasl-42ca37554c987f2bdeda596a18f5d3989c9fc0d7.tar.xz | |
actually send the ServerboundCustomPayloadPacket
Diffstat (limited to 'azalea-protocol/packet-macros/src/lib.rs')
| -rwxr-xr-x | azalea-protocol/packet-macros/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-protocol/packet-macros/src/lib.rs b/azalea-protocol/packet-macros/src/lib.rs index 09a3acb8..0c98f4a3 100755 --- a/azalea-protocol/packet-macros/src/lib.rs +++ b/azalea-protocol/packet-macros/src/lib.rs @@ -130,7 +130,7 @@ fn as_packet_derive(input: TokenStream, state: proc_macro2::TokenStream) -> Toke syn::Data::Struct(syn::DataStruct { fields, .. }) => fields, _ => panic!("#[derive(*Packet)] can only be used on structs"), }; - let FieldsNamed { named, .. } = match fields { + let FieldsNamed { named: _, .. } = match fields { syn::Fields::Named(f) => f, _ => panic!("#[derive(*Packet)] can only be used on structs with named fields"), }; |
