skip rustfmt for `software_sha256d_64`
What changed, and why it matters
This commit adds a single formatting directive (`#[rustfmt::skip]`) to tell Rust's automatic code formatter not to reformat a specific SHA-256 hashing function. It does not change any executable code, logic, or behavior. There is no security impact.
No security action needed. Treat as a normal code-style/maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff inserts #[rustfmt::skip] above software_sha256d_64 in hashes/src/sha256/crypto/mod.rs. This attribute prevents rustfmt from restyling the function body. No algorithmic, cryptographic, or memory-safety changes are present.
Changed components
hashes/src/sha256/crypto/mod.rsInspect captured patch +1 / −0
diff --git a/hashes/src/sha256/crypto/mod.rs b/hashes/src/sha256/crypto/mod.rs
index b213fd81..3cafc24f 100644
--- a/hashes/src/sha256/crypto/mod.rs
+++ b/hashes/src/sha256/crypto/mod.rs
@@ -579,6 +579,7 @@ impl HashEngine {
}
// Optimized scalar SHA256d of a single 64-byte input.
+ #[rustfmt::skip]
pub(crate) fn software_sha256d_64(out: &mut [u8; 32], input: &[u8; 64]) {
let mut w = [0u32; 16];
for (w_val, buff_bytes) in w.iter_mut().zip(input.bitcoin_as_chunks::<4>().0) {
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.