What changed, and why it matters
This commit only reformats the import statements in a single test file. No code behavior, logic, or security properties changed.
Recommended action
No action needed; this is a non-functional style-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff shows a pure formatting change in consensus_encoding/tests/decode.rs: use statements were merged and reordered to satisfy a Rust formatter. No functions, types, tests, or dependencies were modified.
Changed components
consensus_encoding/tests/decode.rsInspect captured patch +4 / −5
diff --git a/consensus_encoding/tests/decode.rs b/consensus_encoding/tests/decode.rs
index d8fe094e..69e16b33 100644
--- a/consensus_encoding/tests/decode.rs
+++ b/consensus_encoding/tests/decode.rs
@@ -7,13 +7,12 @@ use std::io::{Cursor, Read};
#[cfg(feature = "alloc")]
use bitcoin_consensus_encoding::check_decode;
-use bitcoin_consensus_encoding::check_decoder;
-#[cfg(feature = "std")]
-use bitcoin_consensus_encoding::{decode_from_read, decode_from_read_unbuffered, ReadError};
use bitcoin_consensus_encoding::{
- decode_from_slice, decode_from_slice_unbounded, ArrayDecoder, CompactSizeDecoder, Decode,
- DecodeError, Decoder, Decoder2, UnexpectedEofError,
+ check_decoder, decode_from_slice, decode_from_slice_unbounded, ArrayDecoder,
+ CompactSizeDecoder, Decode, DecodeError, Decoder, Decoder2, UnexpectedEofError,
};
+#[cfg(feature = "std")]
+use bitcoin_consensus_encoding::{decode_from_read, decode_from_read_unbuffered, ReadError};
#[cfg(feature = "alloc")]
use bitcoin_consensus_encoding::{ByteVecDecoder, VecDecoder, VecDecoderError};
Risk score
Our methodology →Why this scored 15/100
Human-validated context
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
No validated notes yet.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.