mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-11 10:49:30 +00:00
Silence false needless_option_as_deref
clippy warnings
See https://github.com/rust-lang/rust-clippy/issues/8047
This commit is contained in:
parent
badec2252c
commit
7d968d78bb
|
@ -772,6 +772,7 @@ unsafe extern "C" fn base_src_alloc<T: BaseSrcImpl>(
|
||||||
.into_glib()
|
.into_glib()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::needless_option_as_deref)]
|
||||||
unsafe extern "C" fn base_src_create<T: BaseSrcImpl>(
|
unsafe extern "C" fn base_src_create<T: BaseSrcImpl>(
|
||||||
ptr: *mut ffi::GstBaseSrc,
|
ptr: *mut ffi::GstBaseSrc,
|
||||||
offset: u64,
|
offset: u64,
|
||||||
|
|
|
@ -222,6 +222,7 @@ unsafe extern "C" fn push_src_alloc<T: PushSrcImpl>(
|
||||||
.into_glib()
|
.into_glib()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::needless_option_as_deref)]
|
||||||
unsafe extern "C" fn push_src_create<T: PushSrcImpl>(
|
unsafe extern "C" fn push_src_create<T: PushSrcImpl>(
|
||||||
ptr: *mut ffi::GstPushSrc,
|
ptr: *mut ffi::GstPushSrc,
|
||||||
buffer_ptr: *mut gst::ffi::GstBuffer,
|
buffer_ptr: *mut gst::ffi::GstBuffer,
|
||||||
|
|
|
@ -1369,6 +1369,7 @@ where
|
||||||
res.into_glib()
|
res.into_glib()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::needless_option_as_deref)]
|
||||||
unsafe extern "C" fn trampoline_getrange_function<
|
unsafe extern "C" fn trampoline_getrange_function<
|
||||||
T,
|
T,
|
||||||
F: Fn(
|
F: Fn(
|
||||||
|
|
Loading…
Reference in a new issue