diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-05 13:52:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-05 13:52:58 +0200 |
| commit | 0f92eb8a4a7d8715381f5b5d748d22315f6ff9c7 (patch) | |
| tree | 59ae3be626ef5728a794c2f570df15fd220b0807 /src/libstd/sync | |
| parent | f119bf2761ab11ca577fac9881678c04d3e7fdb0 (diff) | |
| parent | fc67e5774df2ca5d5fdcf78835983b8c2ddb134d (diff) | |
| download | rust-0f92eb8a4a7d8715381f5b5d748d22315f6ff9c7.tar.gz rust-0f92eb8a4a7d8715381f5b5d748d22315f6ff9c7.zip | |
Rollup merge of #62123 - jeremystucki:needless_lifetimes_std, r=alexcrichton
Remove needless lifetimes (std) Split from #62039
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 f8fcd3ff5a5..fbe36d10517 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) => { |
