Remove some unneeded lifetime annotations

This commit is contained in:
Sebastian Dröge 2018-10-11 11:30:54 +03:00
parent d19c70694a
commit e2950749e8

View file

@ -24,7 +24,7 @@ pub unsafe trait MetaAPI: Sized {
fn get_meta_api() -> glib::Type; fn get_meta_api() -> glib::Type;
unsafe fn from_ptr<'a>(buffer: &'a BufferRef, ptr: *const Self::GstType) -> MetaRef<'a, Self> { unsafe fn from_ptr(buffer: &BufferRef, ptr: *const Self::GstType) -> MetaRef<Self> {
assert!(!ptr.is_null()); assert!(!ptr.is_null());
let meta_api = Self::get_meta_api(); let meta_api = Self::get_meta_api();
@ -41,10 +41,10 @@ pub unsafe trait MetaAPI: Sized {
} }
} }
unsafe fn from_mut_ptr<'a, T>( unsafe fn from_mut_ptr<T>(
buffer: &'a mut BufferRef, buffer: &mut BufferRef,
ptr: *mut Self::GstType, ptr: *mut Self::GstType,
) -> MetaRefMut<'a, Self, T> { ) -> MetaRefMut<Self, T> {
assert!(!ptr.is_null()); assert!(!ptr.is_null());
let meta_api = Self::get_meta_api(); let meta_api = Self::get_meta_api();