diff --git a/units/src/amount/mod.rs b/units/src/amount/mod.rs index cd16a8552..f340b90da 100644 --- a/units/src/amount/mod.rs +++ b/units/src/amount/mod.rs @@ -5,7 +5,7 @@ //! This module mainly introduces the [`Amount`] and [`SignedAmount`] types. //! We refer to the documentation on the types for more information. -pub mod error; +mod error; #[cfg(feature = "serde")] pub mod serde; diff --git a/units/tests/api.rs b/units/tests/api.rs index 44eee3d9c..6fb84cfaf 100644 --- a/units/tests/api.rs +++ b/units/tests/api.rs @@ -124,17 +124,17 @@ struct Errors { i: amount::PossiblyConfusingDenominationError, j: amount::TooPreciseError, k: amount::UnknownDenominationError, - l: amount::error::InputTooLargeError, - m: amount::error::InvalidCharacterError, - n: amount::error::MissingDenominationError, - o: amount::error::MissingDigitsError, - p: amount::error::OutOfRangeError, - q: amount::error::ParseAmountError, - r: amount::error::ParseDenominationError, - s: amount::error::ParseError, - t: amount::error::PossiblyConfusingDenominationError, - u: amount::error::TooPreciseError, - v: amount::error::UnknownDenominationError, + l: amount::InputTooLargeError, + m: amount::InvalidCharacterError, + n: amount::MissingDenominationError, + o: amount::MissingDigitsError, + p: amount::OutOfRangeError, + q: amount::ParseAmountError, + r: amount::ParseDenominationError, + s: amount::ParseError, + t: amount::PossiblyConfusingDenominationError, + u: amount::TooPreciseError, + v: amount::UnknownDenominationError, w: block::TooBigForRelativeBlockHeightError, x: locktime::absolute::ConversionError, y: locktime::absolute::Height, @@ -166,15 +166,6 @@ fn api_can_use_all_types_from_module_amount() { }; } -#[test] -fn api_can_use_all_types_from_module_amount_error() { - use bitcoin_units::amount::error::{ - InputTooLargeError, InvalidCharacterError, MissingDenominationError, MissingDigitsError, - OutOfRangeError, ParseAmountError, ParseDenominationError, ParseError, - PossiblyConfusingDenominationError, TooPreciseError, UnknownDenominationError, - }; -} - #[test] fn api_can_use_all_types_from_module_block() { use bitcoin_units::block::{BlockHeight, BlockInterval, TooBigForRelativeBlockHeightError};