Skip to content

Commit c06a7b4

Browse files
authored
Merge pull request #70 from hnez/clippy-2024-06-14
rauc/systemd: allow struct fields being unread in demo_mode
2 parents 5dae43b + 37cd90f commit c06a7b4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-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>>,

src/dbus/systemd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub enum ServiceAction {
5252

5353
#[derive(Clone)]
5454
pub struct Service {
55+
#[cfg_attr(feature = "demo_mode", allow(dead_code))]
5556
pub action: Arc<Topic<ServiceAction>>,
5657
pub status: Arc<Topic<ServiceStatus>>,
5758
}

0 commit comments

Comments
 (0)