Skip to content

Commit c7b81e5

Browse files
committed
dbus: systemd: Allow some fields to never be read
It's a common pattern in tacd codebase to collect all Topics in a struct to make them available to e.g. the UI code. These fields are not used, but should nevertheless be stored in the respective struct to keep the common pattern. Signed-off-by: Leonard Göhrs <[email protected]>
1 parent 69b9a94 commit c7b81e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dbus/systemd.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ pub struct Service {
5959
#[derive(Clone)]
6060
pub struct Systemd {
6161
pub reboot: Arc<Topic<bool>>,
62+
#[allow(dead_code)]
6263
pub networkmanager: Service,
64+
#[allow(dead_code)]
6365
pub labgrid: Service,
66+
#[allow(dead_code)]
6467
pub iobus: Service,
6568
}
6669

0 commit comments

Comments
 (0)