aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-05-23 22:42:41 -0700
committerZeyla Hellyer <[email protected]>2017-05-24 17:31:48 -0700
commit540aea32af7878293c72fe9cc2c2d3ce27a44c5e (patch)
tree4356b63961eb5754b29c6a99b4bc031c5d4240b1 /src/model
parentRemove unused internal macro (diff)
downloadserenity-540aea32af7878293c72fe9cc2c2d3ce27a44c5e.tar.xz
serenity-540aea32af7878293c72fe9cc2c2d3ce27a44c5e.zip
Clippy lints
Diffstat (limited to 'src/model')
-rw-r--r--src/model/channel/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/model/channel/mod.rs b/src/model/channel/mod.rs
index 98e5f8d..b82b22c 100644
--- a/src/model/channel/mod.rs
+++ b/src/model/channel/mod.rs
@@ -177,9 +177,8 @@ impl Channel {
#[inline]
pub fn is_nsfw(&self) -> bool {
match *self {
- Channel::Group(_) => false,
Channel::Guild(ref channel) => channel.read().unwrap().is_nsfw(),
- Channel::Private(_) => false,
+ Channel::Group(_) | Channel::Private(_) => false,
}
}