aboutsummaryrefslogtreecommitdiff
path: root/src/client
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/client
parentFix no-cache standardframework compilation (#290) (diff)
downloadserenity-b71d99fde84135fa66f73c4817d340ffbe8bddae.tar.xz
serenity-b71d99fde84135fa66f73c4817d340ffbe8bddae.zip
Remove useless clones (#292)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/context.rs b/src/client/context.rs
index 6cada3c..dcb1d48 100644
--- a/src/client/context.rs
+++ b/src/client/context.rs
@@ -100,7 +100,7 @@ impl Context {
} else {
let user = http::get_current_user()?;
- map.insert("username", Value::String(user.name.clone()));
+ map.insert("username", Value::String(user.name));
if let Some(email) = user.email {
map.insert("email", Value::String(email));