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:
parent
6ca98e5275
commit
e67e97bb37
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue