diff options
| author | acdenisSK <[email protected]> | 2017-07-07 16:27:42 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-07 16:27:42 +0200 |
| commit | aa307b160a263fb4d091d4aed06076b6c7f744b6 (patch) | |
| tree | 5fb553f4e4170f695ebaaafd2500765ac3984882 /src/cache | |
| parent | Apply the new api change for dms in bots (diff) | |
| download | serenity-aa307b160a263fb4d091d4aed06076b6c7f744b6.tar.xz serenity-aa307b160a263fb4d091d4aed06076b6c7f744b6.zip | |
Actually, use `unreachable!` instead of `panic!`
Diffstat (limited to 'src/cache')
| -rw-r--r-- | src/cache/mod.rs | 2 |
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) = { |