Skip to content

Commit

Permalink
Fix transmute message.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed May 7, 2024
1 parent 6db9cb4 commit 2d88789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reference_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl<T: ?Sized> CppPin<T> {
// to
// Box<CppPinContents<T>>
// is safe.
let contents = unsafe { std::mem::transmute(item) };
let contents = unsafe { std::mem::transmute::<Box<T>, Box<CppPinContents<T>>>(item) };
Self(contents)
}

Expand Down

0 comments on commit 2d88789

Please sign in to comment.