absolute: Use Self in error type

As is becoming conventional here, use `Self` in the `From` impl for
error type.
This commit is contained in:
Tobin C. Harding 2024-01-24 13:29:20 +11:00
parent d08d3efdfa
commit 2130150df6
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 3 additions and 3 deletions

View File

@ -587,17 +587,17 @@ impl std::error::Error for Error {
impl From<ConversionError> for Error {
#[inline]
fn from(e: ConversionError) -> Self { Error::Conversion(e) }
fn from(e: ConversionError) -> Self { Self::Conversion(e) }
}
impl From<OperationError> for Error {
#[inline]
fn from(e: OperationError) -> Self { Error::Operation(e) }
fn from(e: OperationError) -> Self { Self::Operation(e) }
}
impl From<ParseIntError> for Error {
#[inline]
fn from(e: ParseIntError) -> Self { Error::Parse(e) }
fn from(e: ParseIntError) -> Self { Self::Parse(e) }
}
/// An error that occurs when converting a `u32` to a lock time variant.