Skip to content

Commit d19ca67

Browse files
committed
system: 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 66e7aa8 commit d19ca67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/system.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ impl Barebox {
134134
}
135135

136136
pub struct System {
137+
#[allow(dead_code)]
137138
pub uname: Arc<Topic<Arc<Uname>>>,
139+
#[allow(dead_code)]
138140
pub barebox: Arc<Topic<Arc<Barebox>>>,
141+
#[allow(dead_code)]
139142
pub tacd_version: Arc<Topic<String>>,
140143
}
141144

0 commit comments

Comments
 (0)