What changed, and why it matters
This is a purely cosmetic code-formatting change made by an automated rustfmt tool. It rewrites one type alias definition in a single file to fit on fewer lines. There is no functional change, no bug fix, and no security relevance.
No action needed. This is a formatting-only commit with no security implications.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit applies rustfmt nightly formatting to p2p/src/message_blockdata.rs. It collapses a multi-line type alias for GetBlocksOrHeadersInnerEncoder into two lines. The generic parameters (ProtocolVersionEncoder, BlockLocatorEncoder, BlockHashEncoder) and the Encoder3 wrapper remain identical. No logic, API, or behavior is altered.
Changed components
p2p/src/message_blockdata.rsInspect captured patch +2 / −5
diff --git a/p2p/src/message_blockdata.rs b/p2p/src/message_blockdata.rs
index 142a1b93..a680b3b1 100644
--- a/p2p/src/message_blockdata.rs
+++ b/p2p/src/message_blockdata.rs
@@ -358,11 +358,8 @@ pub struct GetHeadersMessage {
pub stop_hash: BlockHash,
}
-type GetBlocksOrHeadersInnerEncoder<'e> = Encoder3<
- ProtocolVersionEncoder<'e>,
- BlockLocatorEncoder<'e>,
- BlockHashEncoder<'e>,
->;
+type GetBlocksOrHeadersInnerEncoder<'e> =
+ Encoder3<ProtocolVersionEncoder<'e>, BlockLocatorEncoder<'e>, BlockHashEncoder<'e>>;
encoding::encoder_newtype! {
/// The encoder for [`GetBlocksMessage`].
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.