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