aboutsummaryrefslogtreecommitdiff
path: root/tests/test_formatters.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 /tests/test_formatters.rs
parentHave `ConnectionStage` derive Copy (diff)
downloadserenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.tar.xz
serenity-0ce8be869eeb2eb700e22f71b2e00872cc96a500.zip
`to_owned` -> `to_string`
Diffstat (limited to 'tests/test_formatters.rs')
-rw-r--r--tests/test_formatters.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_formatters.rs b/tests/test_formatters.rs
index 9093cee..b48c648 100644
--- a/tests/test_formatters.rs
+++ b/tests/test_formatters.rs
@@ -25,7 +25,7 @@ fn test_mention() {
id: ChannelId(4),
last_message_id: None,
last_pin_timestamp: None,
- name: "a".to_owned(),
+ name: "a".to_string(),
permission_overwrites: vec![],
position: 1,
topic: None,
@@ -34,7 +34,7 @@ fn test_mention() {
})));
let emoji = Emoji {
id: EmojiId(5),
- name: "a".to_owned(),
+ name: "a".to_string(),
managed: true,
require_colons: true,
roles: vec![],
@@ -45,7 +45,7 @@ fn test_mention() {
hoist: false,
managed: false,
mentionable: false,
- name: "fake role".to_owned(),
+ name: "fake role".to_string(),
permissions: Permissions::empty(),
position: 1,
};
@@ -54,7 +54,7 @@ fn test_mention() {
avatar: None,
bot: false,
discriminator: 4132,
- name: "fake".to_owned(),
+ name: "fake".to_string(),
};
let member = Member {
deaf: false,