aboutsummaryrefslogtreecommitdiff
path: root/src/model/gateway.rs
diff options
context:
space:
mode:
authorMaiddog <[email protected]>2018-03-17 13:07:42 -0500
committeralex <[email protected]>2018-03-17 19:07:42 +0100
commitb71d99fde84135fa66f73c4817d340ffbe8bddae (patch)
tree9061c50b8631c7aee1c5317f00a1b15c46e85da6 /src/model/gateway.rs
parentFix no-cache standardframework compilation (#290) (diff)
downloadserenity-b71d99fde84135fa66f73c4817d340ffbe8bddae.tar.xz
serenity-b71d99fde84135fa66f73c4817d340ffbe8bddae.zip
Remove useless clones (#292)
Diffstat (limited to 'src/model/gateway.rs')
-rw-r--r--src/model/gateway.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs
index 6ad2cda..924f27f 100644
--- a/src/model/gateway.rs
+++ b/src/model/gateway.rs
@@ -229,7 +229,7 @@ impl<'de> Deserialize<'de> for Presence {
let user_id = user_map
.remove("id")
.ok_or_else(|| DeError::custom("Missing presence user id"))
- .and_then(|x| UserId::deserialize(x.clone()))
+ .and_then(|x| UserId::deserialize(x))
.map_err(DeError::custom)?;
(user_id, None)