summaryrefslogtreecommitdiffstats
path: root/vendor/rayon/src/slice/chunks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rayon/src/slice/chunks.rs')
-rw-r--r--vendor/rayon/src/slice/chunks.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/rayon/src/slice/chunks.rs b/vendor/rayon/src/slice/chunks.rs
index 5b145bdd8..a3cc70953 100644
--- a/vendor/rayon/src/slice/chunks.rs
+++ b/vendor/rayon/src/slice/chunks.rs
@@ -317,7 +317,7 @@ impl<'data, T: Send> ChunksExactMut<'data, T> {
/// returned by the iterator. The returned slice has at most `chunk_size-1`
/// elements. Subsequent calls will return an empty slice.
pub fn take_remainder(&mut self) -> &'data mut [T] {
- std::mem::replace(&mut self.rem, &mut [])
+ std::mem::take(&mut self.rem)
}
}