Skip to content

Commit 6c86b7d

Browse files
committed
systemd: allow action field to be unread in demo_mode
This fixes a new cargo clippy error that complains about the `action` field never being read in demo_mode: $ cargo clippy --features=demo_mode --no-default-features error: field `action` is never read --> src/dbus/systemd.rs:55:9 | 54 | pub struct Service { | ------- field in this struct 55 | pub action: Arc<Topic<ServiceAction>>, | ^^^^^^ | Signed-off-by: Leonard Göhrs <[email protected]>
1 parent 5dae43b commit 6c86b7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dbus/rauc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ pub struct Rauc {
102102
pub operation: Arc<Topic<String>>,
103103
pub progress: Arc<Topic<Progress>>,
104104
pub slot_status: Arc<Topic<Arc<SlotStatus>>>,
105+
#[cfg_attr(feature = "demo_mode", allow(dead_code))]
105106
pub primary: Arc<Topic<String>>,
106107
pub last_error: Arc<Topic<String>>,
107108
pub install: Arc<Topic<String>>,

0 commit comments

Comments
 (0)