aboutsummaryrefslogtreecommitdiff
path: root/tests/test_msg_builder.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-12-16 13:24:09 -0800
committerZeyla Hellyer <[email protected]>2017-12-16 13:24:09 -0800
commit9b53582f5e5e9650abda4106124e7f9f4e78a90c (patch)
tree88bd56a75b1d110ea049abbaea88bb6e8a83dac3 /tests/test_msg_builder.rs
parentFix compilation of examples (diff)
downloadserenity-9b53582f5e5e9650abda4106124e7f9f4e78a90c.tar.xz
serenity-9b53582f5e5e9650abda4106124e7f9f4e78a90c.zip
Fix most clippy lints, take more refeernces
Fix clippy lints and subsequently accept references for more function parameters.
Diffstat (limited to 'tests/test_msg_builder.rs')
-rw-r--r--tests/test_msg_builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_msg_builder.rs b/tests/test_msg_builder.rs
index e4deae4..bbb0dd7 100644
--- a/tests/test_msg_builder.rs
+++ b/tests/test_msg_builder.rs
@@ -32,7 +32,7 @@ fn no_free_formatting() {
#[test]
fn mentions() {
let content_emoji = MessageBuilder::new()
- .emoji(Emoji {
+ .emoji(&Emoji {
id: EmojiId(32),
name: "Rohrkatze".to_string(),
managed: false,
@@ -42,7 +42,7 @@ fn mentions() {
.build();
let content_mentions = MessageBuilder::new()
.channel(1)
- .mention(UserId(2))
+ .mention(&UserId(2))
.role(3)
.user(4)
.build();