witness_version: Use Self in error From impl

We can use self in error `From` impls with no loss of clarity and it is
more maintainable.
This commit is contained in:
Tobin C. Harding 2023-08-24 17:06:08 +10:00
parent c06c9beb01
commit 3397ff9910
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -253,5 +253,5 @@ impl std::error::Error for Error {
}
impl From<bech32::Error> for Error {
fn from(e: bech32::Error) -> Error { Error::Bech32(e) }
fn from(e: bech32::Error) -> Self { Self::Bech32(e) }
}