Use Self:: in error return type

As is becoming customary in this codebase use `Self::Foo` to return the
error variant in `From` impl.

Refactor only, no logic changes.
This commit is contained in:
Tobin C. Harding 2024-01-10 15:32:37 +11:00
parent 2073a40c50
commit f08aa16e91
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ impl std::error::Error for Error {
}
impl From<io::Error> for Error {
fn from(e: io::Error) -> Self { Error::Io(e.kind()) }
fn from(e: io::Error) -> Self { Self::Io(e.kind()) }
}
impl From<PrevoutsSizeError> for Error {