aboutsummaryrefslogtreecommitdiff
path: root/src/cache/mod.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-09 08:23:21 -0700
committerZeyla Hellyer <[email protected]>2017-09-09 08:23:21 -0700
commit1c138a357b37e3bd8002109cfb9a8da94a53810e (patch)
tree3256df54f6b31e0422848ea6bcc1d35e58b27eee /src/cache/mod.rs
parent`parent_id` -> `category_id` (diff)
downloadserenity-1c138a357b37e3bd8002109cfb9a8da94a53810e.tar.xz
serenity-1c138a357b37e3bd8002109cfb9a8da94a53810e.zip
Apply rustfmt + fix tests
Diffstat (limited to 'src/cache/mod.rs')
-rw-r--r--src/cache/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cache/mod.rs b/src/cache/mod.rs
index 3a53262..88e4266 100644
--- a/src/cache/mod.rs
+++ b/src/cache/mod.rs
@@ -596,7 +596,9 @@ impl Cache {
}
#[inline]
- pub fn categories<C: Into<ChannelId>>(&self, channel_id: C) -> Option<Arc<RwLock<ChannelCategory>>> {
+ pub fn categories<C: Into<ChannelId>>(&self,
+ channel_id: C)
+ -> Option<Arc<RwLock<ChannelCategory>>> {
self.categories.get(&channel_id.into()).cloned()
}