aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-18 10:06:46 -0700
committerZeyla Hellyer <[email protected]>2017-09-18 10:45:31 -0700
commit52b8e29193801aa254ac7ab105331fb6b0e8eec1 (patch)
treef7282ec364a0deb9f61d50a683047ec5c021f4f6 /src/model
parentUse combinators in `parse_header` (diff)
downloadserenity-52b8e29193801aa254ac7ab105331fb6b0e8eec1.tar.xz
serenity-52b8e29193801aa254ac7ab105331fb6b0e8eec1.zip
Gate ChannelCategory impl behind 'model' feature
The rest of the models in the model module have their implementations gated behind the "model" feature, so do the same here.
Diffstat (limited to 'src/model')
-rw-r--r--src/model/channel/channel_category.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/channel/channel_category.rs b/src/model/channel/channel_category.rs
index 9a56234..554a656 100644
--- a/src/model/channel/channel_category.rs
+++ b/src/model/channel/channel_category.rs
@@ -33,6 +33,7 @@ pub struct ChannelCategory {
pub permission_overwrites: Vec<PermissionOverwrite>,
}
+#[cfg(feature = "model")]
impl ChannelCategory {
/// Adds a permission overwrite to the category's channels.
#[inline]