aboutsummaryrefslogtreecommitdiff
path: root/src/framework/mod.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-29 22:53:50 +0200
committeracdenisSK <[email protected]>2017-07-29 22:53:50 +0200
commit0d6965f647396c84b2570e92b63244c3afaea863 (patch)
tree497cb26d44af5deca9afbe5ef9395d27aa3c9a8d /src/framework/mod.rs
parentFix imports (diff)
downloadserenity-0d6965f647396c84b2570e92b63244c3afaea863.tar.xz
serenity-0d6965f647396c84b2570e92b63244c3afaea863.zip
Remove a few clones
Diffstat (limited to 'src/framework/mod.rs')
-rw-r--r--src/framework/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/mod.rs b/src/framework/mod.rs
index 14533b5..ccebfd4 100644
--- a/src/framework/mod.rs
+++ b/src/framework/mod.rs
@@ -682,7 +682,7 @@ impl BuiltinFramework {
if let Some(ref prefix) = group.prefix {
for v in &cmd.aliases {
group.commands.insert(
- format!("{} {}", prefix, v.to_owned()),
+ format!("{} {}", prefix, v),
CommandOrAlias::Alias(format!("{} {}", prefix, name)),
);
}