aboutsummaryrefslogtreecommitdiff
path: root/examples/04_message_builder/src
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 /examples/04_message_builder/src
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 'examples/04_message_builder/src')
-rw-r--r--examples/04_message_builder/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/04_message_builder/src/main.rs b/examples/04_message_builder/src/main.rs
index 4452cfe..e906ed2 100644
--- a/examples/04_message_builder/src/main.rs
+++ b/examples/04_message_builder/src/main.rs
@@ -28,7 +28,7 @@ impl EventHandler for Handler {
.push("User ")
.push_bold_safe(msg.author.name)
.push(" used the 'ping' command in the ")
- .mention(channel)
+ .mention(&channel)
.push(" channel")
.build();