mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +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
3 changed files with 3 additions and 0 deletions
|
@ -772,6 +772,7 @@ unsafe extern "C" fn base_src_alloc<T: BaseSrcImpl>(
|
|||
.into_glib()
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_option_as_deref)]
|
||||
unsafe extern "C" fn base_src_create<T: BaseSrcImpl>(
|
||||
ptr: *mut ffi::GstBaseSrc,
|
||||
offset: u64,
|
||||
|
|
|
@ -222,6 +222,7 @@ unsafe extern "C" fn push_src_alloc<T: PushSrcImpl>(
|
|||
.into_glib()
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_option_as_deref)]
|
||||
unsafe extern "C" fn push_src_create<T: PushSrcImpl>(
|
||||
ptr: *mut ffi::GstPushSrc,
|
||||
buffer_ptr: *mut gst::ffi::GstBuffer,
|
||||
|
|
|
@ -1369,6 +1369,7 @@ where
|
|||
res.into_glib()
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_option_as_deref)]
|
||||
unsafe extern "C" fn trampoline_getrange_function<
|
||||
T,
|
||||
F: Fn(
|
||||
|
|
Loading…
Reference in a new issue