diff options
| author | Zeyla Hellyer <[email protected]> | 2017-04-13 20:45:56 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-04-19 14:53:32 -0700 |
| commit | 3f03f9adc97315bb61a5c71f52365306cb8e2d1a (patch) | |
| tree | 8fe0b518d1450b0657cfb75f56251fd90120807e /src/model/user.rs | |
| parent | Update the way errors are handled in dispatch (diff) | |
| download | serenity-3f03f9adc97315bb61a5c71f52365306cb8e2d1a.tar.xz serenity-3f03f9adc97315bb61a5c71f52365306cb8e2d1a.zip | |
Deprecate methods prefixed with `get_`
A lot of structs - such as `Guild` or `ChannelId` - have methods with
prefixes of `get_`, which are generally discouraged. To fix this,
deprecate them and remove them in v0.3.0.
Diffstat (limited to 'src/model/user.rs')
| -rw-r--r-- | src/model/user.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/user.rs b/src/model/user.rs index b38756a..8f7349c 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -594,7 +594,7 @@ impl UserId { /// Search the cache for the user with the Id. #[cfg(feature="cache")] pub fn find(&self) -> Option<Arc<RwLock<User>>> { - CACHE.read().unwrap().get_user(*self) + CACHE.read().unwrap().user(*self) } /// Gets a user by its Id over the REST API. |