diff options
| author | Ubuntu <github@matdoes.dev> | 2022-08-31 18:50:59 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-08-31 18:50:59 +0000 |
| commit | cbc0a13d9b19552976bc7177567cbaab9993127a (patch) | |
| tree | fc5715569e679002b8ecc5c68a66364b4b7f4049 /azalea-protocol/packet-macros/src | |
| parent | efb1f3f2d59af4dc44304d1f23678ac667c5cae2 (diff) | |
| download | azalea-drasl-cbc0a13d9b19552976bc7177567cbaab9993127a.tar.xz | |
fix a couple more possible panics
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.") }); } |
