Put From impl below std::error::Error impl

As we do for all the other error types put the `From` impl blocks below
the `std::error::Erro` impl block.

Refactor only, no logic changes.
This commit is contained in:
Tobin C. Harding 2022-05-25 12:31:32 +10:00
parent 6ca98e5275
commit e67e97bb37
1 changed files with 7 additions and 7 deletions

View File

@ -69,13 +69,6 @@ impl fmt::Display for Error {
}
}
#[doc(hidden)]
impl From<io::Error> for Error {
fn from(err: io::Error) -> Self {
Error::Io(err)
}
}
#[cfg(feature = "std")]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
impl std::error::Error for Error {
@ -88,3 +81,10 @@ impl std::error::Error for Error {
}
}
}
#[doc(hidden)]
impl From<io::Error> for Error {
fn from(err: io::Error) -> Self {
Error::Io(err)
}
}