Skip to content

Commit 2d88789

Browse files
committed
Fix transmute message.
1 parent 6db9cb4 commit 2d88789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reference_wrapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ impl<T: ?Sized> CppPin<T> {
412412
// to
413413
// Box<CppPinContents<T>>
414414
// is safe.
415-
let contents = unsafe { std::mem::transmute(item) };
415+
let contents = unsafe { std::mem::transmute::<Box<T>, Box<CppPinContents<T>>>(item) };
416416
Self(contents)
417417
}
418418

0 commit comments

Comments
 (0)