From 9b7a706bfdd83e3215901b896b257f7e54d52e65 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 1 Nov 2024 16:22:21 +1100 Subject: [PATCH] Remove From 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. --- units/src/locktime/absolute.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/units/src/locktime/absolute.rs b/units/src/locktime/absolute.rs index 79bdde330..60a99da21 100644 --- a/units/src/locktime/absolute.rs +++ b/units/src/locktime/absolute.rs @@ -10,7 +10,6 @@ use internals::write_err; #[cfg(feature = "alloc")] 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]). /// @@ -360,12 +359,6 @@ impl ParseError { } } -impl From for ParseError { - fn from(value: ParseIntError) -> Self { - Self::InvalidInteger { source: value.source, input: value.input } - } -} - impl From for ParseError { fn from(value: ConversionError) -> Self { Self::Conversion(value.input.into()) } }