Commit 78f0d09198

78f0d09198d6950e8d50205bd4ac92ab5a5a0bec

parent: 9a149eea78

Unsigned

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

weechat-matrix: Formatting fixes.

Layout: unified · split

src/commands/devices.rs +1 −3
@@ -80,9 +80,7 @@ impl DevicesCommand {
8080 let devices: Vec<DeviceIdBox> = devices
8181 .vals
8282 .iter()
83 .map(|d| {
84 d.clone().to_string_lossy().as_ref().into()
85 })
83 .map(|d| d.clone().to_string_lossy().as_ref().into())
8684 .collect();
8785 Self::delete(servers, buffer, devices);
8886 }
src/commands/mod.rs +2 −2
@@ -2,12 +2,12 @@ use crate::{config::ConfigHandle, Servers};
22use weechat::hooks::Command;
33
44mod devices;
5mod matrix;
65mod keys;
6mod matrix;
77
88use devices::DevicesCommand;
9use matrix::MatrixCommand;
109use keys::KeysCommand;
10use matrix::MatrixCommand;
1111
1212pub struct Commands {
1313 _matrix: Command,
src/connection.rs +7 −2
@@ -1,6 +1,11 @@
11use std::{
2 cell::RefCell, collections::BTreeMap, future::Future, path::PathBuf,
3 rc::Rc, rc::Weak, sync::Arc, time::Duration,
2 cell::RefCell,
3 collections::BTreeMap,
4 future::Future,
5 path::PathBuf,
6 rc::{Rc, Weak},
7 sync::Arc,
8 time::Duration,
49};
510
611use async_std::sync::{channel as async_channel, Receiver, Sender};
src/server.rs +1 −2
@@ -82,11 +82,10 @@ use weechat::{
8282};
8383
8484use crate::{
85 PLUGIN_NAME,
8685 config::Config,
8786 connection::{Connection, InteractiveAuthInfo},
8887 room::RoomHandle,
89 ConfigHandle,
88 ConfigHandle, PLUGIN_NAME,
9089};
9190
9291#[derive(Debug)]