aboutsummaryrefslogtreecommitdiff
path: root/src/utils/mod.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/utils/mod.rs
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz
serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip
`to_owned` -> `to_string`
Diffstat (limited to 'src/utils/mod.rs')
-rw-r--r--src/utils/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs
index d81b0f9..4b36b73 100644
--- a/src/utils/mod.rs
+++ b/src/utils/mod.rs
@@ -259,7 +259,7 @@ pub fn parse_channel(mention: &str) -> Option<u64> {
///
/// let expected = EmojiIdentifier {
/// id: EmojiId(302516740095606785),
-/// name: "smugAnimeFace".to_owned(),
+/// name: "smugAnimeFace".to_string(),
/// };
///
/// assert_eq!(parse_emoji("<:smugAnimeFace:302516740095606785>").unwrap(), expected);
@@ -359,8 +359,8 @@ pub fn read_image<P: AsRef<Path>>(path: P) -> Result<String> {
///
/// let command = r#""this is the first" "this is the second""#;
/// let expected = vec![
-/// "this is the first".to_owned(),
-/// "this is the second".to_owned()
+/// "this is the first".to_string(),
+/// "this is the second".to_string()
/// ];
///
/// assert_eq!(parse_quotes(command), expected);
@@ -371,7 +371,7 @@ pub fn read_image<P: AsRef<Path>>(path: P) -> Result<String> {
///
/// let command = r#""this is a quoted command that doesn't have an ending quotation"#;
/// let expected = vec![
-/// "this is a quoted command that doesn't have an ending quotation".to_owned(),
+/// "this is a quoted command that doesn't have an ending quotation".to_string(),
/// ];
///
/// assert_eq!(parse_quotes(command), expected);