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 {
216216 Weechat::spawn(async move {
217217 let mut servers = servers.borrow_mut();
218218 Matrix::autoconnect(&mut servers);
219 }).detach();
219 })
220 .detach();
220221
221222 Ok(plugin)
222223 }
src/room_buffer.rs +1
@@ -83,6 +83,7 @@ pub struct WeechatRoomMember {
8383 pub nick: Rc<RefCell<String>>,
8484 pub display_name: Rc<RefCell<Option<String>>>,
8585 pub prefix: Rc<RefCell<Option<String>>>,
86 #[allow(clippy::rc_buffer)]
8687 pub color: Rc<String>,
8788}
8889
src/server.rs +2
@@ -113,6 +113,7 @@ pub struct LoginInfo {
113113
114114#[derive(Clone)]
115115pub struct MatrixServer {
116 #[allow(clippy::rc_buffer)]
116117 server_name: Rc<String>,
117118 inner: Rc<RefCell<InnerServer>>,
118119}
@@ -125,6 +126,7 @@ impl std::fmt::Debug for MatrixServer {
125126}
126127
127128pub struct InnerServer {
129 #[allow(clippy::rc_buffer)]
128130 server_name: Rc<String>,
129131 pub room_buffers: HashMap<RoomId, RoomBuffer>,
130132 settings: ServerSettings,