diff options
Diffstat (limited to 'azalea-protocol/packet-macros/src')
| -rw-r--r-- | azalea-protocol/packet-macros/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-protocol/packet-macros/src/lib.rs b/azalea-protocol/packet-macros/src/lib.rs index f96a85c7..4f47c9a9 100644 --- a/azalea-protocol/packet-macros/src/lib.rs +++ b/azalea-protocol/packet-macros/src/lib.rs @@ -254,18 +254,18 @@ pub fn declare_state_packets(input: TokenStream) -> TokenStream { if !has_serverbound_packets { serverbound_id_match_contents.extend(quote! { - _ => panic!("This enum is empty and can't exist.") + _ => unreachable!("This enum is empty and can't exist.") }); serverbound_write_match_contents.extend(quote! { - _ => panic!("This enum is empty and can't exist.") + _ => unreachable!("This enum is empty and can't exist.") }); } if !has_clientbound_packets { clientbound_id_match_contents.extend(quote! { - _ => panic!("This enum is empty and can't exist.") + _ => unreachable!("This enum is empty and can't exist.") }); clientbound_write_match_contents.extend(quote! { - _ => panic!("This enum is empty and can't exist.") + _ => unreachable!("This enum is empty and can't exist.") }); } |
