Commit 9a881484a6

9a881484a6f6fb645fb8745b889811a6efdd9ef7

parent: 9294b1b81d

Unsigned

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

weechat: Fix some clippy warnings.

Layout: unified · split

src/lib.rs +2 −1
@@ -216,7 +216,8 @@ impl Plugin for Matrix {
216 Weechat::spawn(async move { 216 Weechat::spawn(async move {
217 let mut servers = servers.borrow_mut(); 217 let mut servers = servers.borrow_mut();
218 Matrix::autoconnect(&mut servers); 218 Matrix::autoconnect(&mut servers);
219 }).detach(); 219 })
220 .detach();
220 221
221 Ok(plugin) 222 Ok(plugin)
222 } 223 }
src/room_buffer.rs +1
@@ -83,6 +83,7 @@ pub struct WeechatRoomMember {
83 pub nick: Rc<RefCell<String>>, 83 pub nick: Rc<RefCell<String>>,
84 pub display_name: Rc<RefCell<Option<String>>>, 84 pub display_name: Rc<RefCell<Option<String>>>,
85 pub prefix: Rc<RefCell<Option<String>>>, 85 pub prefix: Rc<RefCell<Option<String>>>,
86 #[allow(clippy::rc_buffer)]
86 pub color: Rc<String>, 87 pub color: Rc<String>,
87} 88}
88 89
src/server.rs +2
@@ -113,6 +113,7 @@ pub struct LoginInfo {
113 113
114#[derive(Clone)] 114#[derive(Clone)]
115pub struct MatrixServer { 115pub struct MatrixServer {
116 #[allow(clippy::rc_buffer)]
116 server_name: Rc<String>, 117 server_name: Rc<String>,
117 inner: Rc<RefCell<InnerServer>>, 118 inner: Rc<RefCell<InnerServer>>,
118} 119}
@@ -125,6 +126,7 @@ impl std::fmt::Debug for MatrixServer {
125} 126}
126 127
127pub struct InnerServer { 128pub struct InnerServer {
129 #[allow(clippy::rc_buffer)]
128 server_name: Rc<String>, 130 server_name: Rc<String>,
129 pub room_buffers: HashMap<RoomId, RoomBuffer>, 131 pub room_buffers: HashMap<RoomId, RoomBuffer>,
130 settings: ServerSettings, 132 settings: ServerSettings,