Skip to content

Commit 3e82f9b

Browse files
committed
Allow dead_code on Error::Power variant for future use
Mirrors the existing pattern on Error::Socket. The variant is reserved for making power sysfs/D-Bus failures hard errors (tampering detection) instead of the current graceful degradation.
1 parent 682a04e commit 3e82f9b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub enum Error {
1313
/// SD card enumeration failed.
1414
SdCard(String),
1515
/// Power supply monitoring failed.
16+
#[allow(dead_code)]
1617
Power(String),
1718
/// Kill sequence encountered an error.
1819
Kill(String),

0 commit comments

Comments
 (0)