diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2019-03-09 19:10:28 -0800 | 
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2019-03-09 19:10:28 -0800 | 
| commit | df4ea90b39c808e858e05f3b4bb05fc29f812d26 (patch) | |
| tree | 933b8174b4345eef7cd841265db05b552849823b /src/libstd/sys/wasm/net.rs | |
| parent | 26b4cb48484382032522384318e70ceb0fbc4a41 (diff) | |
| download | rust-df4ea90b39c808e858e05f3b4bb05fc29f812d26.tar.gz rust-df4ea90b39c808e858e05f3b4bb05fc29f812d26.zip  | |
Use lifetime contravariance to elide more lifetimes in core+alloc+std
Diffstat (limited to 'src/libstd/sys/wasm/net.rs')
| -rw-r--r-- | src/libstd/sys/wasm/net.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/wasm/net.rs b/src/libstd/sys/wasm/net.rs index 1249832fb09..a2ea2dfbbc0 100644 --- a/src/libstd/sys/wasm/net.rs +++ b/src/libstd/sys/wasm/net.rs @@ -298,10 +298,10 @@ impl Iterator for LookupHost { } } -impl<'a> TryFrom<&'a str> for LookupHost { +impl TryFrom<&str> for LookupHost { type Error = io::Error; - fn try_from(_v: &'a str) -> io::Result<LookupHost> { + fn try_from(_v: &str) -> io::Result<LookupHost> { unsupported() } }  | 
