Skip to content

Commit 810ee65

Browse files
committed
fix(bfld): gate PrivacyAttestationProof::compute behind std
CI `cargo test --no-default-features (baseline regression)` failed with `error: associated function compute is never used` under -D warnings. compute() is only reachable via PrivacyModeRegistry (#[cfg(feature = "std")]); without std there is no caller. Gate the impl to match its only callers. Verified clean under --no-default-features, default, and --features mqtt with RUSTFLAGS=-D warnings. Co-Authored-By: claude-flow <ruv@ruv.net>
1 parent 29e698a commit 810ee65

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

v2/crates/wifi-densepose-bfld/src/privacy_mode.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ pub struct PrivacyAttestationProof {
132132
pub hash: [u8; 32],
133133
}
134134

135+
// `compute` is only reachable through `PrivacyModeRegistry` (the std-gated
136+
// audit log); without `std` there is no caller, so gate it to match and avoid
137+
// a dead-code error under `--no-default-features` + `-D warnings`.
138+
#[cfg(feature = "std")]
135139
impl PrivacyAttestationProof {
136140
fn compute(mode: PrivacyMode, prev_hash: [u8; 32]) -> Self {
137141
let action_bits = mode.action_bits();

0 commit comments

Comments
 (0)