What changed, and why it matters
This is a tiny, routine Rust code change that makes one internal type (`AmountDecoder`) publicly visible from a slightly more convenient module path. It adds no new logic, changes no behavior, and fixes no bug. There is no security relevance.
No action required. This is a benign API cleanup change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds a single re-export: pub use self::unsigned::AmountDecoder; in units/src/amount/mod.rs, gated behind the existing encoding feature and marked with #[doc(inline)]. It mirrors existing re-exports for SignedAmount and Amount. The change is purely API ergonomics and has no functional or security implications.
Changed components
units/src/amount/mod.rsInspect captured patch +3 / −0
diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs
index f90b7b59..ef9f749d 100644
--- a/units/src/amount/mod.rs
+++ b/units/src/amount/mod.rs
@@ -37,6 +37,9 @@ pub use self::{
signed::SignedAmount,
unsigned::Amount,
};
+#[doc(inline)]
+#[cfg(feature = "encoding")]
+pub use self::unsigned::AmountDecoder;
#[cfg(feature = "encoding")]
#[doc(no_inline)]
pub use self::error::AmountDecoderError;
Why this scored 17/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.