From 0ce8be869eeb2eb700e22f71b2e00872cc96a500 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Sun, 1 Oct 2017 21:59:33 +0200 Subject: `to_owned` -> `to_string` --- src/utils/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utils/mod.rs') 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 { /// /// 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>(path: P) -> Result { /// /// 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>(path: P) -> Result { /// /// 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); -- cgit v1.2.3