aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2019-11-17 23:51:56 -0500
committerNathan Perry <np@nathanperry.dev>2019-11-17 23:51:56 -0500
commit8a5a841e619793ce81b177179694712284be23e4 (patch)
tree6e8b46b1a008a94236e5aaaf48fad95dee70451a /src/main.rs
parentc068e82d2b6341cf7896bfc2e1fd4683f28d67b4 (diff)
borrowck fixes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 720e830..98c9765 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -99,7 +99,7 @@ impl EventHandler for Handler {
.remove(&deleted_message_id)
.iter()
.for_each(|id| {
- if let Err(e) = channel_id.delete_message(ctx, id) {
+ if let Err(e) = channel_id.delete_message(&ctx, id) {
error!("deleting message: {}", e);
}
});
@@ -202,7 +202,7 @@ fn run() -> Result<()> {
},
Err(e) => {
- if let Err(e) = msg.react(ctx, "❌") {
+ if let Err(e) = msg.react(&ctx, "❌") {
error!("reacting to failed message: {}", e);
}