aboutsummaryrefslogtreecommitdiff
path: root/src/model/utils.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-12-10 10:16:35 -0800
committerAustin Hellyer <[email protected]>2016-12-10 10:16:35 -0800
commit530de25aa5345223fa924e76eb69bb32e484a62a (patch)
treea243a073855f4a8fdc57e122dc52538be76e9414 /src/model/utils.rs
parentDeprecate embed image/thumbnail height/width (diff)
downloadserenity-530de25aa5345223fa924e76eb69bb32e484a62a.tar.xz
serenity-530de25aa5345223fa924e76eb69bb32e484a62a.zip
Fix no-cache+method conditional compiles
Additionally, flag imports behind feature flags to avoid unused imports.
Diffstat (limited to 'src/model/utils.rs')
-rw-r--r--src/model/utils.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/utils.rs b/src/model/utils.rs
index 2668142..e4b2445 100644
--- a/src/model/utils.rs
+++ b/src/model/utils.rs
@@ -17,11 +17,11 @@ use super::{
use ::internal::prelude::*;
use ::utils::{decode_array, into_array};
-#[cfg(feature = "methods")]
+#[cfg(all(feature="cache", feature="methods"))]
use super::permissions::{self, Permissions};
-#[cfg(all(feature = "cache", feature = "methods"))]
+#[cfg(all(feature="cache", feature="methods"))]
use ::client::CACHE;
-#[cfg(all(feature = "cache", feature = "methods"))]
+#[cfg(all(feature="cache", feature="methods"))]
use ::ext::cache::ChannelRef;
#[macro_escape]