diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/net.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.rs b/src/net.rs index 0646a6fd31..cfb902b6b6 100644 --- a/src/net.rs +++ b/src/net.rs @@ -61,7 +61,7 @@ impl RemoteAddr { })?; if address.is_empty() || address.contains(':') { let msg = format!("Invalid IP or domain: \"{}\"", address); - return Err(Error::from(ErrorKind::AddrParse(msg))); + return Err(ErrorKind::AddrParse(msg).into()); } Ok(RemoteAddr::Domain(address.to_owned(), port)) } |
