aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErk- <[email protected]>2018-10-24 15:27:51 +0200
committerLakelezz <[email protected]>2018-10-24 15:27:51 +0200
commit176fde296b143e230ea8889073c69b34a95d41f6 (patch)
treeaa6d595001fd52e86d8a4a3057986ca995194c34 /src
parentFix NSFW Checks (#418) (diff)
downloadserenity-176fde296b143e230ea8889073c69b34a95d41f6.tar.xz
serenity-176fde296b143e230ea8889073c69b34a95d41f6.zip
Fix compilation without cache (#420)
Diffstat (limited to 'src')
-rw-r--r--src/client/dispatch.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs
index f3585a8..3cc22e4 100644
--- a/src/client/dispatch.rs
+++ b/src/client/dispatch.rs
@@ -25,6 +25,7 @@ use std::time::Duration;
#[cfg(feature = "cache")]
use super::CACHE;
+#[cfg(feature = "cache")]
lazy_static! {
pub static ref CACHE_TRY_WRITE_DURATION: Option<Duration> =
CACHE.read().get_try_write_duration();