aboutsummaryrefslogtreecommitdiff
path: root/src/model/id.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-12-08 17:37:44 -0800
committerAustin Hellyer <[email protected]>2016-12-09 16:09:46 -0800
commitc7ffc4d4dd1ad63fae7a58f2299497aa3e3a39e7 (patch)
tree438143459a40d423f445647facc336895b2e4d79 /src/model/id.rs
parentCommand builder, quoted args, and multi-prefixes (diff)
downloadserenity-c7ffc4d4dd1ad63fae7a58f2299497aa3e3a39e7.tar.xz
serenity-c7ffc4d4dd1ad63fae7a58f2299497aa3e3a39e7.zip
Fix some clippy lints
Diffstat (limited to 'src/model/id.rs')
-rw-r--r--src/model/id.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/id.rs b/src/model/id.rs
index cbbd796..d0d0b61 100644
--- a/src/model/id.rs
+++ b/src/model/id.rs
@@ -176,7 +176,7 @@ impl UserId {
/// Search the cache for the channel with the Id.
#[cfg(all(feature = "cache", feature = "methods"))]
pub fn find(&self) -> Option<User> {
- CACHE.read().unwrap().get_user(*self).map(|x| x.clone())
+ CACHE.read().unwrap().get_user(*self).cloned()
}
}