aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/channel_category.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-18 10:47:19 -0700
committerZeyla Hellyer <[email protected]>2017-09-18 17:48:37 -0700
commit8e3b4d601ffb78909db859640482f7e0bb10131f (patch)
tree16500c9274a0517a776ea707bb623d1c9947d8cf /src/model/channel/channel_category.rs
parentApply rustfmt (diff)
downloadserenity-8e3b4d601ffb78909db859640482f7e0bb10131f.tar.xz
serenity-8e3b4d601ffb78909db859640482f7e0bb10131f.zip
Fix compiles of a variety of feature combinations
This fixes compilation errors and warnings when compiling a mixture of non-default feature targets.
Diffstat (limited to 'src/model/channel/channel_category.rs')
-rw-r--r--src/model/channel/channel_category.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/channel/channel_category.rs b/src/model/channel/channel_category.rs
index 554a656..119f1f1 100644
--- a/src/model/channel/channel_category.rs
+++ b/src/model/channel/channel_category.rs
@@ -1,6 +1,10 @@
use model::*;
+
+#[cfg(all(feature = "builder", feature = "model"))]
use builder::EditChannel;
+#[cfg(all(feature = "builder", feature = "model"))]
use http;
+#[cfg(all(feature = "model", feature = "utils"))]
use utils as serenity_utils;
/// A category of [`GuildChannel`]s.
@@ -77,7 +81,7 @@ impl ChannelCategory {
/// ```rust,ignore
/// category.edit(|c| c.name("test").bitrate(86400));
/// ```
- #[cfg(feature = "model")]
+ #[cfg(all(feature = "builder", feature = "model"))]
pub fn edit<F>(&mut self, f: F) -> Result<()>
where F: FnOnce(EditChannel) -> EditChannel {
#[cfg(feature = "cache")]