Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Update FromGlibPtrFull<*const T>
Browse files Browse the repository at this point in the history
This casts to T instead of _

(cherry picked from commit 07660e2)
  • Loading branch information
luukvanderduim authored and EPashkin committed Jan 30, 2020
1 parent 2a867ed commit d60b247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ impl<T: 'static, MM: BoxedMemoryManager<T>> FromGlibPtrFull<*const T> for Boxed<
unsafe fn from_glib_full(ptr: *const T) -> Self {
assert!(!ptr.is_null());
Boxed {
inner: AnyBox::ForeignOwned(ptr::NonNull::new_unchecked(ptr as *mut _)),
inner: AnyBox::ForeignOwned(ptr::NonNull::new_unchecked(ptr as *mut T)),
_dummy: PhantomData,
}
}
Expand Down

0 comments on commit d60b247

Please sign in to comment.