Remove From<ParseIntError>

The errors in `units::locktime::absolute` are complex, I'd like to make
them more simple so they are more understandable.

I have no clue why this is implemented - remove it.
This commit is contained in:
Tobin C. Harding 2024-11-01 16:22:21 +11:00
parent c90f4b6033
commit 9b7a706bfd
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 0 additions and 7 deletions

View File

@ -10,7 +10,6 @@ use internals::write_err;
#[cfg(feature = "alloc")] #[cfg(feature = "alloc")]
use crate::parse; use crate::parse;
use crate::parse::ParseIntError;
/// The Threshold for deciding whether a lock time value is a height or a time (see [Bitcoin Core]). /// The Threshold for deciding whether a lock time value is a height or a time (see [Bitcoin Core]).
/// ///
@ -360,12 +359,6 @@ impl ParseError {
} }
} }
impl From<ParseIntError> for ParseError {
fn from(value: ParseIntError) -> Self {
Self::InvalidInteger { source: value.source, input: value.input }
}
}
impl From<ConversionError> for ParseError { impl From<ConversionError> for ParseError {
fn from(value: ConversionError) -> Self { Self::Conversion(value.input.into()) } fn from(value: ConversionError) -> Self { Self::Conversion(value.input.into()) }
} }