Commit cc644ef031
cc644ef031daa1af3b81c53eb0a77b9051695210
parent: e7dee5c19c
Unsigned
Damir Jelić <poljar@termina.org.uk> · 2020-06-20 10:39 UTC
weechat-matrix: Mark some unused stuff as used.
Layout: unified · split
src/debug.rs
−1
| @@ -1,5 +1,4 @@ |
| 1 | use std::io; |
1 | use std::io; |
| 2 | use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender}; |
| |
| 3 | use weechat::Weechat; |
2 | use weechat::Weechat; |
| 4 | |
3 | |
| 5 | #[derive(Clone)] |
4 | #[derive(Clone)] |
src/lib.rs
+2
| @@ -38,7 +38,9 @@ impl Servers { |
| 38 | |
38 | |
| 39 | struct Matrix { |
39 | struct Matrix { |
| 40 | servers: Servers, |
40 | servers: Servers, |
| |
41 | #[used] |
| 41 | commands: Commands, |
42 | commands: Commands, |
| |
43 | #[used] |
| 42 | config: Config, |
44 | config: Config, |
| 43 | } |
45 | } |
| 44 | |
46 | |
src/server.rs
+1
| @@ -126,6 +126,7 @@ pub struct Connection { |
| 126 | response_receiver: JoinHandle<(), ()>, |
126 | response_receiver: JoinHandle<(), ()>, |
| 127 | // TODO move the runtime into the plugin, once we're able to cancel tokio |
127 | // TODO move the runtime into the plugin, once we're able to cancel tokio |
| 128 | // tasks. |
128 | // tasks. |
| |
129 | #[used] |
| 129 | runtime: Runtime, |
130 | runtime: Runtime, |
| 130 | } |
131 | } |
| 131 | |
132 | |