From 711856cad33595ec48e99e74a291d58e5f515cc4 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Tue, 21 Dec 2021 13:52:03 -0600 Subject: [PATCH] disk buckets: clone_from_slice -> copy_from_slice (#22038) --- bucket_map/src/bucket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket_map/src/bucket.rs b/bucket_map/src/bucket.rs index ec1df8a8c3..6f812c07e4 100644 --- a/bucket_map/src/bucket.rs +++ b/bucket_map/src/bucket.rs @@ -266,7 +266,7 @@ impl Bucket { 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