diff options
| author | Austin Hellyer <[email protected]> | 2017-01-23 12:16:06 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-23 12:16:06 -0800 |
| commit | 651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0 (patch) | |
| tree | dcf452e8fe73411af331678a769cb769a32dd12e /src/model/utils.rs | |
| parent | Fix no-framework compilation (diff) | |
| download | serenity-651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0.tar.xz serenity-651c618f17cb92d3ea9bbd1d5f5c92a015ff64e0.zip | |
Switch to a mostly-fully OOP approach
The context is now strictly in relation to the context of the current
channel related to the event, if any. See Context::say for a list of
events that the context can be used for.
Diffstat (limited to 'src/model/utils.rs')
| -rw-r--r-- | src/model/utils.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/utils.rs b/src/model/utils.rs index 71b4a52..dee9a08 100644 --- a/src/model/utils.rs +++ b/src/model/utils.rs @@ -18,11 +18,11 @@ use super::{ use ::internal::prelude::*; use ::utils::{decode_array, into_array}; -#[cfg(all(feature="cache", feature="methods"))] +#[cfg(feature="cache")] use super::permissions::{self, Permissions}; -#[cfg(all(feature="cache", feature="methods"))] +#[cfg(feature="cache")] use ::client::CACHE; -#[cfg(all(feature="cache", feature="methods"))] +#[cfg(feature="cache")] use ::ext::cache::ChannelRef; #[macro_escape] @@ -293,7 +293,7 @@ pub fn remove(map: &mut BTreeMap<String, Value>, key: &str) -> Result<Value> { }) } -#[cfg(all(feature="cache", feature="methods"))] +#[cfg(feature="cache")] pub fn user_has_perms(channel_id: ChannelId, mut permissions: Permissions) -> Result<bool> { |