Allow dead_code for `Keys` struct
What changed, and why it matters
This commit adds a single compiler annotation to suppress an unused-code warning for a test-only helper struct. It does not change any runtime behavior, cryptographic logic, or network handling. There is no security relevance.
No action required. This is a benign lint-suppression change with no security implications.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds #[allow(dead_code)] to the Keys struct inside a #[cfg(test)] module in lightning/src/ln/channel.rs. This only affects linting during test compilation; it does not alter executable code, memory safety, or protocol behavior.
Changed components
lightning/src/ln/channel.rs (test module linting only)Inspect captured patch +1 / −0
diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs
index 0dce93e..bd4cdcd 100644
--- a/lightning/src/ln/channel.rs
+++ b/lightning/src/ln/channel.rs
@@ -14192,6 +14192,7 @@ mod tests {
);
}
+ #[allow(dead_code)]
struct Keys {
signer: InMemorySigner,
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.