From 4b1cfd1cf899fbbc3de8f72cbb160695c1e9ae70 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 1 May 2022 00:32:55 -0500 Subject: remove useless match things --- azalea-client/src/connect.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 3a4dfe79..b6915fe8 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -99,16 +99,13 @@ impl Client { println!("Got profile {:?}", p.game_profile); break conn.game(); } - LoginPacket::ServerboundHelloPacket(p) => { - println!("Got hello {:?}", p); - } LoginPacket::ClientboundLoginDisconnectPacket(p) => { println!("Got disconnect {:?}", p); } LoginPacket::ClientboundCustomQueryPacket(p) => { println!("Got custom query {:?}", p); } - LoginPacket::ServerboundKeyPacket(_) => todo!(), + _ => panic!("Unexpected packet {:?}", packet), }, Err(e) => { panic!("Error: {:?}", e); @@ -233,7 +230,7 @@ impl Client { GamePacket::ClientboundAddMobPacket(p) => { println!("Got add mob packet {:?}", p); } - GamePacket::ServerboundCustomPayloadPacket(_) => todo!(), + _ => panic!("Unexpected packet {:?}", packet), } println!(); } -- cgit v1.2.3