diff options
| author | Austin Hellyer <[email protected]> | 2016-12-08 17:37:44 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-12-09 16:09:46 -0800 |
| commit | c7ffc4d4dd1ad63fae7a58f2299497aa3e3a39e7 (patch) | |
| tree | 438143459a40d423f445647facc336895b2e4d79 /src/model/id.rs | |
| parent | Command builder, quoted args, and multi-prefixes (diff) | |
| download | serenity-c7ffc4d4dd1ad63fae7a58f2299497aa3e3a39e7.tar.xz serenity-c7ffc4d4dd1ad63fae7a58f2299497aa3e3a39e7.zip | |
Fix some clippy lints
Diffstat (limited to 'src/model/id.rs')
| -rw-r--r-- | src/model/id.rs | 2 |
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() } } |