Fix use of reinterpret_cast in to_mut_unsafe_ptr
This commit is contained in:
@@ -146,7 +146,7 @@ fn to_unsafe_ptr<T>(thing: &T) -> *T unsafe {
|
|||||||
*/
|
*/
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn to_mut_unsafe_ptr<T>(thing: &mut T) -> *mut T unsafe {
|
fn to_mut_unsafe_ptr<T>(thing: &mut T) -> *mut T unsafe {
|
||||||
unsafe::reinterpret_cast(thing)
|
unsafe::reinterpret_cast(&thing)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user