aboutsummaryrefslogtreecommitdiff
path: root/src/model/id.rs
diff options
context:
space:
mode:
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()
}
}