From 6f2b5194d13ebf29a691f1e798388d4b445a0898 Mon Sep 17 00:00:00 2001 From: Devin R Date: Tue, 14 Apr 2020 08:45:40 -0400 Subject: [PATCH] remove unused imports/vars --- examples/command_bot.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/command_bot.rs b/examples/command_bot.rs index d64c911f..333ab28e 100644 --- a/examples/command_bot.rs +++ b/examples/command_bot.rs @@ -11,7 +11,7 @@ use matrix_sdk::{ }; use tokio::runtime::Handle; use tokio::sync::{ - mpsc::{self, Receiver, Sender}, + mpsc::{self, Sender}, Mutex, }; @@ -30,14 +30,16 @@ impl EventEmitter for CommandBot { async fn on_room_message(&mut self, room: Arc>, event: Arc>) { if let MessageEvent { content: MessageEventContent::Text(TextMessageEventContent { body: msg_body, .. }), - sender, .. } = event.lock().await.deref() { let room = room.lock().await; if msg_body.contains("!party") { self.send - .send((room.room_id.clone(), "let's PARTY!! 🥳🎊🎉".to_string())) + .send(( + room.room_id.clone(), + "🎉🎊🥳 let's PARTY!! 🥳🎊🎉".to_string(), + )) .await .unwrap() } @@ -89,7 +91,7 @@ async fn login_and_sync( send_client .lock() .await - .room_send(&id, content) + .room_send(&id, content, None) .await .unwrap(); }