From c6addbfe48ca29d58403e00e02768a32644a71c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 24 Apr 2017 17:28:26 +0300 Subject: [PATCH] Remove From<&T> impls for GstRc Instead of this, ToOwned should be used. --- gst-plugin/src/miniobject.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gst-plugin/src/miniobject.rs b/gst-plugin/src/miniobject.rs index d1635360..c98d1da0 100644 --- a/gst-plugin/src/miniobject.rs +++ b/gst-plugin/src/miniobject.rs @@ -156,14 +156,3 @@ pub unsafe trait MiniObject } } -impl<'a, T: MiniObject> From<&'a T> for GstRc { - fn from(f: &'a T) -> GstRc { - unsafe { GstRc::from_unowned_ptr(f.as_ptr()) } - } -} - -impl<'a, T: MiniObject> From<&'a mut T> for GstRc { - fn from(f: &'a mut T) -> GstRc { - unsafe { GstRc::from_unowned_ptr(f.as_ptr()) } - } -}