aboutsummaryrefslogtreecommitdiff
path: root/src/utils/mod.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-10-01 21:59:33 +0200
committeracdenisSK <[email protected]>2017-10-01 22:14:23 +0200
commit1bf4d9cb9823dca8c4bb77147c66eac2d53f609f (patch)
treeba14ca714fa7bc1e6ba1d26f10e7c170bdf10ffa /src/utils/mod.rs
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.tar.xz
serenity-1bf4d9cb9823dca8c4bb77147c66eac2d53f609f.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);