Skip to content

Commit

Permalink
Fix unnecessary name qualifications lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo committed Jul 10, 2024
1 parent de47fb9 commit e56ceb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ impl<T> Rc<T> {
let box_unique = NonNull::new_unchecked(box_unique);
let box_ptr = box_unique.as_ptr();

let value_size = mem::size_of_val(&*box_ptr);
let value_size = size_of_val(&*box_ptr);
let ptr = Self::allocate_for_ptr(box_ptr);

// Copy value as bytes
Expand Down

0 comments on commit e56ceb5

Please sign in to comment.