diff options
| author | Jeremy Stucki <jeremy@myelin.ch> | 2019-06-25 19:43:18 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-07-01 12:15:27 +0200 |
| commit | 47ea8ae0223434e917ce840a963b495019bbe4d1 (patch) | |
| tree | e3a0d7ee7dabd96a95b2cef88b663bdf7c9ed76f /src/libstd/sys/unix | |
| parent | 5748825cc8c74cccef0059cdd4043e6e9b4aa188 (diff) | |
| download | rust-47ea8ae0223434e917ce840a963b495019bbe4d1.tar.gz rust-47ea8ae0223434e917ce840a963b495019bbe4d1.zip | |
Remove needless lifetimes
Diffstat (limited to 'src/libstd/sys/unix')
| -rw-r--r-- | src/libstd/sys/unix/ext/net.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/ext/net.rs b/src/libstd/sys/unix/ext/net.rs index 41090caee84..42edd5dbbea 100644 --- a/src/libstd/sys/unix/ext/net.rs +++ b/src/libstd/sys/unix/ext/net.rs @@ -198,7 +198,7 @@ impl SocketAddr { } } - fn address<'a>(&'a self) -> AddressKind<'a> { + fn address(&self) -> AddressKind<'_> { let len = self.len as usize - sun_path_offset(&self.addr); let path = unsafe { mem::transmute::<&[libc::c_char], &[u8]>(&self.addr.sun_path) }; @@ -894,7 +894,7 @@ impl UnixListener { /// } /// ``` #[stable(feature = "unix_socket", since = "1.10.0")] - pub fn incoming<'a>(&'a self) -> Incoming<'a> { + pub fn incoming(&self) -> Incoming<'_> { Incoming { listener: self } } } |
