What changed, and why it matters
This commit only shortens a code comment to satisfy a Rust lint rule. No program logic, behavior, or security properties were changed.
No action required; this is a non-security documentation/comment-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff changes a single line comment in bitcoin/src/consensus/encode.rs from ‘Disable lint because this match is reachable on < 64 bit platforms’ to ‘This is only reachable on < 64 bit platforms’. The #[allow(unreachable_patterns)] attribute and the surrounding match expression remain identical. There is no functional change.
Changed components
bitcoin/src/consensus/encode.rsInspect captured patch +1 / −1
diff --git a/bitcoin/src/consensus/encode.rs b/bitcoin/src/consensus/encode.rs
index bde3f84f..1aa2b327 100644
--- a/bitcoin/src/consensus/encode.rs
+++ b/bitcoin/src/consensus/encode.rs
@@ -360,7 +360,7 @@ pub const fn varint_size_u64(v: u64) -> usize {
u64::MAX
};
- #[allow(unreachable_patterns)] // Disable lint because this match is reachable on < 64 bit platforms
+ #[allow(unreachable_patterns)] // This is only reachable on < 64 bit platforms
match v {
0..=LIMIT => encoding::CompactSizeEncoder::encoded_size(v as usize), // cast is ok because we just checked bounds
_ => encoding::CompactSizeEncoder::encoded_size(usize::MAX),
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.