aboutsummaryrefslogtreecommitdiff
path: root/src/cache
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-07 16:27:42 +0200
committeracdenisSK <[email protected]>2017-07-07 16:27:42 +0200
commitaa307b160a263fb4d091d4aed06076b6c7f744b6 (patch)
tree5fb553f4e4170f695ebaaafd2500765ac3984882 /src/cache
parentApply the new api change for dms in bots (diff)
downloadserenity-aa307b160a263fb4d091d4aed06076b6c7f744b6.tar.xz
serenity-aa307b160a263fb4d091d4aed06076b6c7f744b6.zip
Actually, use `unreachable!` instead of `panic!`
Diffstat (limited to 'src/cache')
-rw-r--r--src/cache/mod.rs2
1 files changed, 1 insertions, 1 deletions
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) = {