aboutsummaryrefslogtreecommitdiff
path: root/tests/test_channels.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_channels.rs')
-rw-r--r--tests/test_channels.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_channels.rs b/tests/test_channels.rs
index 246243d..7a3f9c3 100644
--- a/tests/test_channels.rs
+++ b/tests/test_channels.rs
@@ -27,7 +27,7 @@ mod utils {
kind: ChannelType::Text,
last_message_id: None,
last_pin_timestamp: None,
- name: "nsfw-stuff".to_owned(),
+ name: "nsfw-stuff".to_string(),
permission_overwrites: vec![],
position: 0,
topic: None,
@@ -47,7 +47,7 @@ mod utils {
avatar: None,
bot: false,
discriminator: 1,
- name: "ab".to_owned(),
+ name: "ab".to_string(),
})),
}
}
@@ -60,16 +60,16 @@ mod utils {
assert!(!channel.is_nsfw());
channel.kind = ChannelType::Text;
- channel.name = "nsfw-".to_owned();
+ channel.name = "nsfw-".to_string();
assert!(channel.is_nsfw());
- channel.name = "nsfw".to_owned();
+ channel.name = "nsfw".to_string();
assert!(channel.is_nsfw());
channel.kind = ChannelType::Voice;
assert!(!channel.is_nsfw());
channel.kind = ChannelType::Text;
- channel.name = "nsf".to_owned();
+ channel.name = "nsf".to_string();
channel.nsfw = true;
assert!(channel.is_nsfw());
channel.nsfw = false;