Use unsafe impl for the Instance trait impl

This commit is contained in:
Sebastian Dröge 2018-05-02 13:48:03 +03:00
parent 6803cb5fac
commit 1f596d414d

View file

@ -15,7 +15,7 @@ pub trait PanicPoison {
fn panicked(&self) -> &AtomicBool;
}
impl<T: ObjectType> Instance<T> for ElementInstanceStruct<T> {
unsafe impl<T: ObjectType> Instance<T> for ElementInstanceStruct<T> {
fn parent(&self) -> &T::GlibType {
&self._parent
}