Skip to content

Commit

Permalink
cloned() -> copied()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Mar 17, 2023
1 parent 07d5738 commit cc5bfda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bucket_map/src/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl<'b, T: Clone + Copy + Debug + Default + 'static> Bucket<T> {
// new data stored should be stored in elem.`first_element`
// new data len is 0 or 1
elem.num_slots = num_slots;
elem.first_element = data.next().cloned().unwrap_or_default();
elem.first_element = data.next().copied().unwrap_or_default();
if old_slots > 1 {
// free old data location
let elem_loc = elem.data_loc(&self.data[bucket_ix as usize]);
Expand Down

0 comments on commit cc5bfda

Please sign in to comment.