diff options
| author | acdenisSK <[email protected]> | 2017-10-01 21:59:33 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-10-01 22:14:23 +0200 |
| commit | 1bf4d9cb9823dca8c4bb77147c66eac2d53f609f (patch) | |
| tree | ba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /src/utils/mod.rs | |
| parent | Have `ConnectionStage` derive Copy (diff) | |
| download | serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.tar.xz serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.zip | |
`to_owned` -> `to_string`
Diffstat (limited to 'src/utils/mod.rs')
| -rw-r--r-- | src/utils/mod.rs | 8 |
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); |