disk buckets: clone_from_slice -> copy_from_slice (#22038)
This commit is contained in:
committed by
GitHub
parent
84eaaae062
commit
711856cad3
@ -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);
|
let slice: &mut [T] = current_bucket.get_mut_cell_slice(elem_loc, data.len() as u64);
|
||||||
assert!(current_bucket.uid(elem_loc) == elem_uid);
|
assert!(current_bucket.uid(elem_loc) == elem_uid);
|
||||||
elem.num_slots = data.len() as u64;
|
elem.num_slots = data.len() as u64;
|
||||||
slice.clone_from_slice(data);
|
slice.copy_from_slice(data);
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
// need to move the allocation to a best fit spot
|
// need to move the allocation to a best fit spot
|
||||||
|
Reference in New Issue
Block a user