diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-02-08 17:01:22 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-02-08 17:01:22 +0100 |
| commit | 6f661a08c8420a2d6f925b8d1f0676a33a4ccdef (patch) | |
| tree | 253eff5b22e4f344ff848024ea61ac23ca530931 /src | |
| parent | eab259139192e8f648123f6b5cce2fe067dc3504 (diff) | |
| download | mullvadvpn-6f661a08c8420a2d6f925b8d1f0676a33a4ccdef.tar.xz mullvadvpn-6f661a08c8420a2d6f925b8d1f0676a33a4ccdef.zip | |
Create Errors with into() instead of Error::from
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)) } |
