What changed, and why it matters
This commit only adds formatting hints to test code so that a code formatter (rustfmt) leaves byte arrays arranged in tidy 8-byte columns. It does not change any behavior, logic, or security-sensitive code.
No security action needed. This is a cosmetic/style-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff inserts two #[rustfmt::skip] attributes above prev_blockhash and merkle_root byte-array initializers in a unit test within primitives/src/block.rs. The values and surrounding test logic are unchanged; only code formatting is affected.
Changed components
primitives/src/block.rs (test module only)Inspect captured patch +2 / −0
diff --git a/primitives/src/block.rs b/primitives/src/block.rs
index a4d3e035..3561e00d 100644
--- a/primitives/src/block.rs
+++ b/primitives/src/block.rs
@@ -905,12 +905,14 @@ mod tests {
// Make a simple block, encode then decode. Verify equivalence.
let header = Header {
version: Version::ONE,
+ #[rustfmt::skip]
prev_blockhash: BlockHash::from_byte_array([
0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA,
0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA,
0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA,
0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA, 0xDC, 0xBA,
]),
+ #[rustfmt::skip]
merkle_root: TxMerkleNode::from_byte_array([
0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD,
0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD, 0xAB, 0xCD,
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.