diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs index db027a191..893b6bcf0 100644 --- a/units/src/amount/mod.rs +++ b/units/src/amount/mod.rs @@ -563,7 +563,7 @@ enum DisplayStyle { } /// Calculates the sum over the iterator using checked arithmetic. -pub trait CheckedSum: private::SumSeal { +pub trait CheckedSum: sealed::Sealed { /// Calculates the sum over the iterator using checked arithmetic. If an over or underflow would /// happen it returns [`None`]. fn checked_sum(self) -> Option; @@ -591,12 +591,12 @@ where } } -mod private { +mod sealed { use super::{Amount, SignedAmount}; /// Used to seal the `CheckedSum` trait - pub trait SumSeal {} + pub trait Sealed {} - impl SumSeal for T where T: Iterator {} - impl SumSeal for T where T: Iterator {} + impl Sealed for T where T: Iterator {} + impl Sealed for T where T: Iterator {} }