What changed, and why it matters
This is an automated code-formatting commit from rustfmt. It only changes whitespace, line breaks, and import ordering. There is no functional change and no security relevance.
Recommended action
No action needed; this is a cosmetic formatting change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit applies rustfmt nightly formatting: collapsing a one-line function body, reordering imports, and rewrapping long macro/assert expressions. No logic, API, or behavior changes are present in the diff.
Changed components
Not specified
Inspect captured patch +10 / −7
diff --git a/bitcoin/src/address/mod.rs b/bitcoin/src/address/mod.rs
index d065105f..a4553f42 100644
--- a/bitcoin/src/address/mod.rs
+++ b/bitcoin/src/address/mod.rs
@@ -475,9 +475,7 @@ impl<V: NetworkValidation> Address<V> {
}
/// Marks the network of this address as unchecked.
- pub fn to_unchecked(self) -> Address<NetworkUnchecked> {
- Address::from_inner(self.to_inner())
- }
+ pub fn to_unchecked(self) -> Address<NetworkUnchecked> { Address::from_inner(self.to_inner()) }
/// Marks the network of this address as unchecked.
#[deprecated(since = "0.33.0", note = "use to_unchecked instead")]
diff --git a/io/src/lib.rs b/io/src/lib.rs
index d2d4ee00..8480367b 100644
--- a/io/src/lib.rs
+++ b/io/src/lib.rs
@@ -41,10 +41,9 @@ mod hash;
use alloc::vec::Vec;
use core::cmp;
-use encoding::Encoder;
-
#[cfg(feature = "std")]
pub use bridge::{FromStd, ToStd};
+use encoding::Encoder;
#[rustfmt::skip] // Keep public re-exports separate.
pub use self::error::{Error, ErrorKind};
@@ -440,6 +439,7 @@ where
mod tests {
#[cfg(all(not(feature = "std"), feature = "alloc"))]
use alloc::{string::ToString, vec};
+
use encoding::ArrayEncoder;
use super::*;
diff --git a/primitives/src/witness.rs b/primitives/src/witness.rs
index c79cf09c..0a3d48ee 100644
--- a/primitives/src/witness.rs
+++ b/primitives/src/witness.rs
@@ -525,7 +525,9 @@ impl fmt::Debug for Witness {
&WrapDebug(|f| {
#[cfg(feature = "hex")]
{
- f.debug_list().entries(self.iter().map(hex_unstable::DisplayHex::as_hex)).finish()
+ f.debug_list()
+ .entries(self.iter().map(hex_unstable::DisplayHex::as_hex))
+ .finish()
}
#[cfg(not(feature = "hex"))]
{
@@ -1298,6 +1300,9 @@ mod test {
let mut slice = encoded.as_slice();
let mut decoder = WitnessDecoder::new();
let err = decoder.push_bytes(&mut slice).unwrap_err();
- assert!(matches!(err, WitnessDecoderError(WitnessDecoderErrorInner::LengthPrefixInvalid(_))));
+ assert!(matches!(
+ err,
+ WitnessDecoderError(WitnessDecoderErrorInner::LengthPrefixInvalid(_))
+ ));
}
}
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.