Silence false needless_option_as_deref clippy warnings

See https://github.com/rust-lang/rust-clippy/issues/8047
This commit is contained in:
Sebastian Dröge 2021-12-02 17:52:23 +02:00
parent badec2252c
commit 7d968d78bb
3 changed files with 3 additions and 0 deletions

View file

@ -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,

View file

@ -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,

View file

@ -1369,6 +1369,7 @@ where
res.into_glib()
}
#[allow(clippy::needless_option_as_deref)]
unsafe extern "C" fn trampoline_getrange_function<
T,
F: Fn(