mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-01 13:42:21 +00:00
Remove From<&T> impls for GstRc<T>
Instead of this, ToOwned should be used.
This commit is contained in:
parent
139c9be958
commit
c6addbfe48
1 changed files with 0 additions and 11 deletions
|
@ -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()) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue