From c95b59327a106817671d70da66abe43bd24c5925 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 15 Sep 2023 03:55:47 +0000 Subject: [PATCH] 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. --- bitcoin/src/p2p/address.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/p2p/address.rs b/bitcoin/src/p2p/address.rs index 2ae9bba1..5e470551 100644 --- a/bitcoin/src/p2p/address.rs +++ b/bitcoin/src/p2p/address.rs @@ -116,7 +116,7 @@ impl fmt::Debug for Address { impl ToSocketAddrs for Address { type Iter = iter::Once; - fn to_socket_addrs(&self) -> Result { + fn to_socket_addrs(&self) -> Result { Ok(iter::once(self.socket_addr()?)) } } @@ -296,7 +296,7 @@ impl Decodable for AddrV2Message { impl ToSocketAddrs for AddrV2Message { type Iter = iter::Once; - fn to_socket_addrs(&self) -> Result { + fn to_socket_addrs(&self) -> Result { Ok(iter::once(self.socket_addr()?)) } }