aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-11-01 12:45:21 -0700
committerZeyla Hellyer <[email protected]>2017-11-01 12:45:21 -0700
commitccbc3b348fe41aaad74c7676f1334be246008cae (patch)
tree8a4bf35f5e2220f4ba529d5c0a1b31b8b5c1eac2 /src/model
parentFix no-parking_lot compilation (diff)
downloadserenity-ccbc3b348fe41aaad74c7676f1334be246008cae.tar.xz
serenity-ccbc3b348fe41aaad74c7676f1334be246008cae.zip
Fix no-client cache tests
There were a few doctests in the cache module that relied on the client module, so instead feature-gate the doctests.
Diffstat (limited to 'src/model')
-rw-r--r--src/model/user.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index 3d39759..bf725cc 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -44,7 +44,7 @@ impl CurrentUser {
/// Print out the current user's avatar url if one is set:
///
/// ```rust,no_run
- /// # use serenity::client::CACHE;
+ /// # use serenity::CACHE;
/// #
/// # let cache = CACHE.read().unwrap();
/// #
@@ -121,7 +121,7 @@ impl CurrentUser {
/// Print out the names of all guilds the current user is in:
///
/// ```rust,no_run
- /// # use serenity::client::CACHE;
+ /// # use serenity::CACHE;
/// #
/// # let cache = CACHE.read().unwrap();
/// #
@@ -149,7 +149,7 @@ impl CurrentUser {
/// Get the invite url with no permissions set:
///
/// ```rust,no_run
- /// # use serenity::client::CACHE;
+ /// # use serenity::CACHE;
/// #
/// # let mut cache = CACHE.write().unwrap();
///
@@ -172,7 +172,7 @@ impl CurrentUser {
/// Get the invite url with some basic permissions set:
///
/// ```rust,no_run
- /// # use serenity::client::CACHE;
+ /// # use serenity::CACHE;
/// #
/// # let mut cache = CACHE.write().unwrap();
///
@@ -228,7 +228,7 @@ impl CurrentUser {
/// Print out the current user's static avatar url if one is set:
///
/// ```rust,no_run
- /// # use serenity::client::CACHE;
+ /// # use serenity::CACHE;
/// #
/// # let cache = CACHE.read().unwrap();
/// #
@@ -252,7 +252,7 @@ impl CurrentUser {
/// Print out the current user's distinct identifier (e.g., Username#1234):
///
/// ```rust,no_run
- /// # use serenity::client::CACHE;
+ /// # use serenity::CACHE;
/// #
/// # let cache = CACHE.read().unwrap();
/// #