Commit 469e3c9bbb

469e3c9bbb9cf6a8fc93563e9f074223d1b0147a

parent: 15a530a53e

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2021-01-05 22:03 UTC

weechat-matrix: Format the repo.

Layout: unified · split

src/connection.rs +9 −5
@@ -7,9 +7,11 @@ use std::{
77 time::Duration,
88};
99
10use tokio::sync::mpsc::{channel, Receiver, Sender};
1110use serde_json::json;
12use tokio::runtime::Runtime;
11use tokio::{
12 runtime::Runtime,
13 sync::mpsc::{channel, Receiver, Sender},
14};
1315
1416use tracing::error;
1517use uuid::Uuid;
@@ -420,9 +422,11 @@ impl Connection {
420422 for room in client.joined_rooms() {
421423 if channel
422424 .send(Ok(ClientMessage::RestoredRoom(room)))
423 .await.is_err() {
424 return;
425 }
425 .await
426 .is_err()
427 {
428 return;
429 }
426430 }
427431 }
428432 }
src/room/mod.rs +2 −1
@@ -50,6 +50,7 @@ use unicode_segmentation::UnicodeSegmentation;
5050use url::Url;
5151
5252use matrix_sdk::{
53 async_trait,
5354 events::{
5455 room::{
5556 member::MemberEventContent,
@@ -62,7 +63,7 @@ use matrix_sdk::{
6263 },
6364 identifiers::{EventId, RoomAliasId, RoomId, UserId},
6465 uuid::Uuid,
65 JoinedRoom, async_trait
66 JoinedRoom,
6667};
6768
6869use weechat::{