What changed, and why it matters
This is an automated code-formatting commit. It only reorders import and module declarations to match the latest rustfmt nightly style. No logic, behavior, or security-sensitive code was changed.
No action needed; this is a benign formatting-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit applies rustfmt formatting: in transaction.rs it reorders cfg-gated use statements, and in amount/mod.rs it reorders module declarations (‘mod result’ before ‘mod signed’). These are purely cosmetic changes with no functional effect.
Changed components
primitives/src/transaction.rsunits/src/amount/mod.rsInspect captured patch +3 / −3
diff --git a/primitives/src/transaction.rs b/primitives/src/transaction.rs
index de80740c..f480dfce 100644
--- a/primitives/src/transaction.rs
+++ b/primitives/src/transaction.rs
@@ -1273,12 +1273,12 @@ pub mod error {
use internals::write_err;
- #[cfg(feature = "alloc")]
- use super::OutPoint;
#[cfg(feature = "hex")]
#[cfg(feature = "alloc")]
use super::parse_int;
#[cfg(feature = "alloc")]
+ use super::OutPoint;
+ #[cfg(feature = "alloc")]
use crate::locktime::absolute::LockTimeDecoderError;
#[cfg(feature = "alloc")]
use crate::witness::WitnessDecoderError;
diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs
index 93c60a93..e2e4d7ed 100644
--- a/units/src/amount/mod.rs
+++ b/units/src/amount/mod.rs
@@ -5,8 +5,8 @@
//! This module mainly introduces the [`Amount`] and [`SignedAmount`] types.
//! We refer to the documentation on the types for more information.
-mod signed;
mod result;
+mod signed;
#[cfg(test)]
mod tests;
mod unsigned;
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.