Skip to content

Commit 85926a7

Browse files
committed
ui: allow for the system field in UiResources to be unused
There is a nice symmetry with all resources being collected in UiResources. Do not break that just because this resource is not read again. Signed-off-by: Leonard Göhrs <[email protected]>
1 parent f200980 commit 85926a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub struct UiResources {
5151
pub rauc: crate::dbus::Rauc,
5252
pub regulators: crate::regulators::Regulators,
5353
pub setup_mode: crate::setup_mode::SetupMode,
54+
#[allow(dead_code)]
5455
pub system: crate::system::System,
5556
pub systemd: crate::dbus::Systemd,
5657
pub temperatures: crate::temperatures::Temperatures,

0 commit comments

Comments
 (0)