Skip to content

Commit

Permalink
Fix clippy::ptr_as_ptr (pedantic)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersk committed Jan 28, 2023
1 parent de3769d commit e94cf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc/src/gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl<

// Create a pointer with the metadata of value and the
// address and provenance of the GcBox.
let gcbox = set_data_ptr(value as *mut GcBox<T>, gcbox_addr);
let gcbox = set_data_ptr(value.cast::<GcBox<T>>(), gcbox_addr);

// Move the data.
ptr::addr_of_mut!((*gcbox).header).write(GcBoxHeader::new());
Expand Down

0 comments on commit e94cf15

Please sign in to comment.