disk buckets: clone_from_slice -> copy_from_slice (#22038)

This commit is contained in:
Jeff Washington (jwash) 2021-12-21 13:52:03 -06:00 committed by GitHub
parent 84eaaae062
commit 711856cad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ impl<T: Clone + Copy> Bucket<T> {
let slice: &mut [T] = current_bucket.get_mut_cell_slice(elem_loc, data.len() as u64);
assert!(current_bucket.uid(elem_loc) == elem_uid);
elem.num_slots = data.len() as u64;
slice.clone_from_slice(data);
slice.copy_from_slice(data);
Ok(())
} else {
// need to move the allocation to a best fit spot