Explicitly use `std::io::Error` when implementing `std` traits
In the next commit, `std::io::Error` will be replaced with a different type, and as a result `std::io::Error` must be referred to explicitly.
This commit is contained in:
parent
9e1cd372cb
commit
c95b59327a
|
@ -116,7 +116,7 @@ impl fmt::Debug for Address {
|
||||||
|
|
||||||
impl ToSocketAddrs for Address {
|
impl ToSocketAddrs for Address {
|
||||||
type Iter = iter::Once<SocketAddr>;
|
type Iter = iter::Once<SocketAddr>;
|
||||||
fn to_socket_addrs(&self) -> Result<Self::Iter, io::Error> {
|
fn to_socket_addrs(&self) -> Result<Self::Iter, std::io::Error> {
|
||||||
Ok(iter::once(self.socket_addr()?))
|
Ok(iter::once(self.socket_addr()?))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -296,7 +296,7 @@ impl Decodable for AddrV2Message {
|
||||||
|
|
||||||
impl ToSocketAddrs for AddrV2Message {
|
impl ToSocketAddrs for AddrV2Message {
|
||||||
type Iter = iter::Once<SocketAddr>;
|
type Iter = iter::Once<SocketAddr>;
|
||||||
fn to_socket_addrs(&self) -> Result<Self::Iter, io::Error> {
|
fn to_socket_addrs(&self) -> Result<Self::Iter, std::io::Error> {
|
||||||
Ok(iter::once(self.socket_addr()?))
|
Ok(iter::once(self.socket_addr()?))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue