diff options
| author | Chris Gregory <czipperz@gmail.com> | 2019-06-30 11:30:01 -0700 |
|---|---|---|
| committer | Chris Gregory <czipperz@gmail.com> | 2019-07-01 20:21:12 -0700 |
| commit | 636f5e6d1120c2bfc264687fbe1e77312c8d2979 (patch) | |
| tree | 6efc5c4df7f031bee45ce2e8409706981244ec34 /src/libstd/sync | |
| parent | 8a3797b73618fb6d7591d194dac22c377b4cd371 (diff) | |
| download | rust-636f5e6d1120c2bfc264687fbe1e77312c8d2979.tar.gz rust-636f5e6d1120c2bfc264687fbe1e77312c8d2979.zip | |
Convert more usages over
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..f8fcd3ff5a5 100644 --- a/src/libstd/sync/mpsc/sync.rs +++ b/src/libstd/sync/mpsc/sync.rs @@ -383,7 +383,7 @@ impl<T> Packet<T> { // needs to be careful to destroy the data *outside* of the lock to // prevent deadlock. let _data = if guard.cap != 0 { - mem::replace(&mut guard.buf.buf, Vec::new()) + mem::take(&mut guard.buf.buf) } else { Vec::new() }; |
