Remove From<&T> impls for GstRc<T>

Instead of this, ToOwned should be used.
This commit is contained in:
Sebastian Dröge 2017-04-24 17:28:26 +03:00
parent 139c9be958
commit c6addbfe48

View file

@ -156,14 +156,3 @@ pub unsafe trait MiniObject
}
}
impl<'a, T: MiniObject> From<&'a T> for GstRc<T> {
fn from(f: &'a T) -> GstRc<T> {
unsafe { GstRc::from_unowned_ptr(f.as_ptr()) }
}
}
impl<'a, T: MiniObject> From<&'a mut T> for GstRc<T> {
fn from(f: &'a mut T) -> GstRc<T> {
unsafe { GstRc::from_unowned_ptr(f.as_ptr()) }
}
}