From 8e50218c03a6f7545b7f637a1a86f4307d307f14 Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Tue, 21 Apr 2020 22:20:05 -0600 Subject: [PATCH] cargo fix --- src/bot.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index 05f5766..bad9ce4 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -136,7 +136,7 @@ impl DiceBot { for event in &room.timeline.events { if let Event::Room(RoomEvent { sender, - event_id, + event_id: _, content: MessageContent::Text(message), .. }) = event @@ -155,7 +155,7 @@ impl DiceBot { }; let plain = format!("{}\n{}", sender, plain); - let html = format!("

{}

\n{}", sender, plain); + let html = format!("

{}

\n{}", sender, html); let message = NoticeMessage { body: plain, @@ -164,7 +164,7 @@ impl DiceBot { }; self.txn_id += 1; - let mut send_url = self.url(format!("/_matrix/client/r0/rooms/{}/send/m.room.message/{}", room_id, self.txn_id), &[]); + let send_url = self.url(format!("/_matrix/client/r0/rooms/{}/send/m.room.message/{}", room_id, self.txn_id), &[]); self.client .put(send_url) .header("user-agent", USER_AGENT)