Skip to content

Commit

Permalink
Merge pull request #70 from hnez/clippy-2024-06-14
Browse files Browse the repository at this point in the history
rauc/systemd: allow struct fields being unread in demo_mode
  • Loading branch information
hnez committed Jun 25, 2024
2 parents 5dae43b + 37cd90f commit c06a7b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dbus/rauc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ pub struct Rauc {
pub operation: Arc<Topic<String>>,
pub progress: Arc<Topic<Progress>>,
pub slot_status: Arc<Topic<Arc<SlotStatus>>>,
#[cfg_attr(feature = "demo_mode", allow(dead_code))]
pub primary: Arc<Topic<String>>,
pub last_error: Arc<Topic<String>>,
pub install: Arc<Topic<String>>,
Expand Down
1 change: 1 addition & 0 deletions src/dbus/systemd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pub enum ServiceAction {

#[derive(Clone)]
pub struct Service {
#[cfg_attr(feature = "demo_mode", allow(dead_code))]
pub action: Arc<Topic<ServiceAction>>,
pub status: Arc<Topic<ServiceStatus>>,
}
Expand Down

0 comments on commit c06a7b4

Please sign in to comment.