aboutsummaryrefslogtreecommitdiff
path: root/src/framework/standard/help_commands.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-01 21:59:33 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:46:37 -0700
commit0ce8be869eeb2eb700e22f71b2e00872cc96a500 (patch)
tree03dd981bc04ba8475333d057705820c3320e3a97 /src/framework/standard/help_commands.rs
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz
serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip
`to_owned` -> `to_string`
Diffstat (limited to 'src/framework/standard/help_commands.rs')
-rw-r--r--src/framework/standard/help_commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/framework/standard/help_commands.rs b/src/framework/standard/help_commands.rs
index c25b227..f92e3cc 100644
--- a/src/framework/standard/help_commands.rs
+++ b/src/framework/standard/help_commands.rs
@@ -94,7 +94,7 @@ pub fn with_embeds(_: &mut Context,
let with_prefix = if let Some(ref prefix) = group.prefix {
format!("{} {}", prefix, command_name)
} else {
- command_name.to_owned()
+ command_name.to_string()
};
if name == with_prefix || name == *command_name {
@@ -267,7 +267,7 @@ pub fn plain(_: &mut Context,
let with_prefix = if let Some(ref prefix) = group.prefix {
format!("{} {}", prefix, command_name)
} else {
- command_name.to_owned()
+ command_name.to_string()
};
if name == with_prefix || name == *command_name {