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::{
7 time::Duration, 7 time::Duration,
8}; 8};
9 9
10use tokio::sync::mpsc::{channel, Receiver, Sender};
11use serde_json::json; 10use serde_json::json;
12use tokio::runtime::Runtime; 11use tokio::{
12 runtime::Runtime,
13 sync::mpsc::{channel, Receiver, Sender},
14};
13 15
14use tracing::error; 16use tracing::error;
15use uuid::Uuid; 17use uuid::Uuid;
@@ -420,9 +422,11 @@ impl Connection {
420 for room in client.joined_rooms() { 422 for room in client.joined_rooms() {
421 if channel 423 if channel
422 .send(Ok(ClientMessage::RestoredRoom(room))) 424 .send(Ok(ClientMessage::RestoredRoom(room)))
423 .await.is_err() { 425 .await
424 return; 426 .is_err()
425 } 427 {
428 return;
429 }
426 } 430 }
427 } 431 }
428 } 432 }
src/room/mod.rs +2 −1
@@ -50,6 +50,7 @@ use unicode_segmentation::UnicodeSegmentation;
50use url::Url; 50use url::Url;
51 51
52use matrix_sdk::{ 52use matrix_sdk::{
53 async_trait,
53 events::{ 54 events::{
54 room::{ 55 room::{
55 member::MemberEventContent, 56 member::MemberEventContent,
@@ -62,7 +63,7 @@ use matrix_sdk::{
62 }, 63 },
63 identifiers::{EventId, RoomAliasId, RoomId, UserId}, 64 identifiers::{EventId, RoomAliasId, RoomId, UserId},
64 uuid::Uuid, 65 uuid::Uuid,
65 JoinedRoom, async_trait 66 JoinedRoom,
66}; 67};
67 68
68use weechat::{ 69use weechat::{