aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2018-01-20 16:27:51 +0100
committeracdenisSK <[email protected]>2018-01-20 16:27:51 +0100
commite53f61c58bcdc6d7df01c4a965be2f8718142900 (patch)
treed348bce010a0115d8c09dc094a8c0a143c07a5b9 /src
parentFix multibyte character based prefixes (#253) (diff)
downloadserenity-e53f61c58bcdc6d7df01c4a965be2f8718142900.tar.xz
serenity-e53f61c58bcdc6d7df01c4a965be2f8718142900.zip
Fix no-cache compilation
Diffstat (limited to 'src')
-rw-r--r--src/model/guild/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs
index f514864..f9f7f17 100644
--- a/src/model/guild/mod.rs
+++ b/src/model/guild/mod.rs
@@ -663,6 +663,7 @@ impl Guild {
/// Returns [`None`] if at least one of the given users' member instances
/// is not present. Returns `None` if the users have the same hierarchy, as
/// neither are greater than the other.
+ #[cfg(feature = "cache")]
pub fn greater_member_hierarchy<T, U>(&self, lhs_id: T, rhs_id: U)
-> Option<UserId> where T: Into<UserId>, U: Into<UserId> {
let lhs_id = lhs_id.into();