forked from mirrors/gstreamer-rs
Remove some unneeded lifetime annotations
This commit is contained in:
parent
d19c70694a
commit
e2950749e8
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue