What changed, and why it matters
This is an automated code-formatting commit from rustfmt. It only removes blank lines between imports and wraps one long function call across multiple lines. There are no security changes.
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 is a pure formatting patch: two test files lose a blank line between a conditional use arbitrary::Arbitrary; and the next import, and taproot_primitives/src/lib.rs has a single long method call reformatted to multi-line style. No logic, types, visibility, dependencies, or cryptographic behavior changed.
Changed components
Inspect captured patch +3 / −3
diff --git a/hashes/tests/api.rs b/hashes/tests/api.rs
index f7f478b5..e38d1925 100644
--- a/hashes/tests/api.rs
+++ b/hashes/tests/api.rs
@@ -12,7 +12,6 @@
#[cfg(feature = "arbitrary")]
use arbitrary::Arbitrary;
-
// Import using module style e.g., `sha256::Hash`.
use bitcoin_hashes::{
hash160, hash_newtype, hkdf, hmac, ripemd160, sha1, sha256, sha256d, sha256t, sha256t_tag,
diff --git a/network/tests/api.rs b/network/tests/api.rs
index 03cd7e74..b99aa536 100644
--- a/network/tests/api.rs
+++ b/network/tests/api.rs
@@ -12,7 +12,6 @@ use core::str::FromStr;
#[cfg(feature = "arbitrary")]
use arbitrary::Arbitrary;
-
use bitcoin_network_kind::{Network, NetworkKind, ParseNetworkError, TestnetVersion};
/// A struct that includes all public non-error enums.
diff --git a/taproot_primitives/src/lib.rs b/taproot_primitives/src/lib.rs
index f4363ac9..59469877 100644
--- a/taproot_primitives/src/lib.rs
+++ b/taproot_primitives/src/lib.rs
@@ -91,7 +91,9 @@ impl encoding::Encode for TapLeafHash {
type Encoder<'e> = TapLeafHashEncoder<'e>;
#[inline]
fn encoder(&self) -> Self::Encoder<'_> {
- TapLeafHashEncoder::new(encoding::ArrayRefEncoder::without_length_prefix(self.as_byte_array()))
+ TapLeafHashEncoder::new(encoding::ArrayRefEncoder::without_length_prefix(
+ self.as_byte_array(),
+ ))
}
}
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.