From aa307b160a263fb4d091d4aed06076b6c7f744b6 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Fri, 7 Jul 2017 16:27:42 +0200 Subject: Actually, use `unreachable!` instead of `panic!` --- src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cache') diff --git a/src/cache/mod.rs b/src/cache/mod.rs index 8ce3d34..22be025 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -718,7 +718,7 @@ impl Cache { // We ignore these two due to the fact that the delete event for dms/groups will _not_ fire anymore. let channel = match event.channel { Channel::Guild(ref channel) => channel, - Channel::Private(_) | Channel::Group(_) => panic!("Unexpected group/dm channel in the delete event!"), + Channel::Private(_) | Channel::Group(_) => unreachable!(), }; let (channel_id, guild_id) = { -- cgit v1.2.3