Commit c8cdbac48b

c8cdbac48bcb1dcd1a8c7e5e15e0558c99792706

parent: 15663ba513

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-10-17 08:25 UTC

weechat-matrix: Remove the need for async closures.

Layout: unified · split

src/connection.rs +1 −1
@@ -403,7 +403,7 @@ impl Connection {
403403 let sync_channel = &channel;
404404
405405 client
406 .sync_with_callback(sync_settings, async move |response| {
406 .sync_with_callback(sync_settings, |response| async move {
407407 let channel = sync_channel;
408408
409409 for (room_id, room) in response.rooms.join {
src/lib.rs −1
@@ -1,4 +1,3 @@
1#![feature(async_closure)]
21#![feature(get_mut_unchecked)]
32
43mod commands;
src/room/mod.rs +1 −1
@@ -583,7 +583,7 @@ impl MatrixRoom {
583583 let room_id = self.room_id.clone();
584584 let typing_notice_time = self.typing_notice_time.clone();
585585
586 let send = async move |typing: bool| {
586 let send = |typing: bool| async move {
587587 let typing_time = typing_notice_time;
588588
589589 // We're in the process of sending out a typing notice, so don't