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/sync | |
| parent | 5748825cc8c74cccef0059cdd4043e6e9b4aa188 (diff) | |
| download | rust-47ea8ae0223434e917ce840a963b495019bbe4d1.tar.gz rust-47ea8ae0223434e917ce840a963b495019bbe4d1.zip | |
Remove needless lifetimes
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mpsc/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/sync.rs b/src/libstd/sync/mpsc/sync.rs index 3c4f8e077c9..a9c4c7345c2 100644 --- a/src/libstd/sync/mpsc/sync.rs +++ b/src/libstd/sync/mpsc/sync.rs @@ -140,7 +140,7 @@ fn wait_timeout_receiver<'a, 'b, T>(lock: &'a Mutex<State<T>>, new_guard } -fn abort_selection<'a, T>(guard: &mut MutexGuard<'a , State<T>>) -> bool { +fn abort_selection<T>(guard: &mut MutexGuard<'_, State<T>>) -> bool { match mem::replace(&mut guard.blocker, NoneBlocked) { NoneBlocked => true, BlockedSender(token) => { |
