diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-18 10:47:19 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-18 17:48:37 -0700 |
| commit | 8e3b4d601ffb78909db859640482f7e0bb10131f (patch) | |
| tree | 16500c9274a0517a776ea707bb623d1c9947d8cf /src/cache | |
| parent | Apply rustfmt (diff) | |
| download | serenity-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/cache')
| -rw-r--r-- | src/cache/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cache/mod.rs b/src/cache/mod.rs index 9029548..5d7d153 100644 --- a/src/cache/mod.rs +++ b/src/cache/mod.rs @@ -600,6 +600,7 @@ impl Cache { self.categories.get(&channel_id.into()).cloned() } + #[cfg(feature = "client")] pub(crate) fn update<E: CacheUpdate>(&mut self, e: &mut E) -> Option<E::Output> { e.update(self) } |