What changed, and why it matters
This commit simply makes an existing type called AmountEncoder publicly available from a more convenient module path. It is a routine API usability change with no security implications.
No security action needed; treat as a normal API ergonomics improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds AmountEncoder to a public re-export alongside the already-public AmountDecoder in units/src/amount/mod.rs. No logic, behavior, or access controls are changed; only the visibility/path of an existing type is adjusted.
Changed components
units/src/amount/mod.rsInspect captured patch +1 / −1
diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs
index 27a46e15..07609c2e 100644
--- a/units/src/amount/mod.rs
+++ b/units/src/amount/mod.rs
@@ -44,7 +44,7 @@ pub use self::error::AmountDecoderError;
pub use self::error::{OutOfRangeError, ParseAmountError, ParseDenominationError, ParseError};
#[doc(inline)]
#[cfg(feature = "encoding")]
-pub use self::unsigned::AmountDecoder;
+pub use self::unsigned::{AmountDecoder, AmountEncoder};
/// A set of denominations in which amounts can be expressed.
///
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.