Commit 48374d9746

48374d9746e6908dc6f57845fc4475484d39b67e

parent: dcb9e5d7c2

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-07-12 18:07 UTC

weechat-matrix: Clippy fixes.

Layout: unified · split

src/room_buffer.rs +1 −1
@@ -228,7 +228,7 @@ impl RoomBuffer {
228 let buffer = self.weechat_buffer(); 228 let buffer = self.weechat_buffer();
229 let input = buffer.input(); 229 let input = buffer.input();
230 230
231 if input.starts_with("/") && !input.starts_with("//") { 231 if input.starts_with('/') && !input.starts_with("//") {
232 // Don't send typing notices for commands. 232 // Don't send typing notices for commands.
233 return; 233 return;
234 } 234 }
src/server.rs +2 −3
@@ -185,10 +185,9 @@ impl Connection {
185 None 185 None
186 }; 186 };
187 187
188 let ret = client 188 client
189 .typing_notice(&room_id, &user_id, typing, timeout) 189 .typing_notice(&room_id, &user_id, typing, timeout)
190 .await; 190 .await
191 ret
192 }) 191 })
193 .await; 192 .await;
194 193