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:
Matt Corallo 2023-09-15 03:55:47 +00:00
parent 9e1cd372cb
commit c95b59327a
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ impl fmt::Debug for Address {
impl ToSocketAddrs for Address {
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()?))
}
}
@ -296,7 +296,7 @@ impl Decodable for AddrV2Message {
impl ToSocketAddrs for AddrV2Message {
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()?))
}
}