diff --git a/src/error.rs b/src/error.rs index 111932d..0375302 100644 --- a/src/error.rs +++ b/src/error.rs @@ -206,7 +206,7 @@ pub(crate) enum Error { UdpSocketReadTimeout { source: io::Error }, #[snafu(display("Failed to send on a UDP socket: {}", source))] UdpSocketSend { source: io::Error }, - #[snafu(display("Torrent verification failed."))] + #[snafu(display("DNS failure"))] UnresolvedDomain, #[snafu(display( "Feature `{}` cannot be used without passing the `--unstable` flag", diff --git a/src/host_port.rs b/src/host_port.rs index c25afe1..0a35053 100644 --- a/src/host_port.rs +++ b/src/host_port.rs @@ -101,7 +101,7 @@ impl TryFrom<&HostPort> for SocketAddr { fn try_from(node: &HostPort) -> Result { match &node.host { - Host::Domain(_domain) => Err(Error::UnresolvedDomain), + Host::Domain(_) => Err(Error::UnresolvedDomain), Host::Ipv4(ipv4) => Ok(SocketAddr::new(IpAddr::V4(*ipv4), node.port)), Host::Ipv6(ipv6) => Ok(SocketAddr::new(IpAddr::V6(*ipv6), node.port)), }