Skip to content

Commit 877ac08

Browse files
committed
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.
1 parent bf030d3 commit 877ac08

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/network/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ impl fmt::Display for Error {
6969
}
7070
}
7171

72-
#[doc(hidden)]
73-
impl From<io::Error> for Error {
74-
fn from(err: io::Error) -> Self {
75-
Error::Io(err)
76-
}
77-
}
78-
7972
#[cfg(feature = "std")]
8073
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
8174
impl std::error::Error for Error {
@@ -88,3 +81,10 @@ impl std::error::Error for Error {
8881
}
8982
}
9083
}
84+
85+
#[doc(hidden)]
86+
impl From<io::Error> for Error {
87+
fn from(err: io::Error) -> Self {
88+
Error::Io(err)
89+
}
90+
}

0 commit comments

Comments
 (0)