forked from mirrors/gstreamer-rs
Make rustfmt in CI happy
This commit is contained in:
parent
8eb4b879fc
commit
ec8727c3ca
1 changed files with 20 additions and 27 deletions
|
@ -438,9 +438,8 @@ impl<O: IsA<Pad>> PadExtManual for O {
|
||||||
{
|
{
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(type_complexity))]
|
#[cfg_attr(feature = "cargo-clippy", allow(type_complexity))]
|
||||||
unsafe {
|
unsafe {
|
||||||
let func_box: Box<
|
let func_box: Box<Fn(&Pad, &Option<::Object>) -> bool + Send + Sync + 'static> =
|
||||||
Fn(&Pad, &Option<::Object>) -> bool + Send + Sync + 'static,
|
Box::new(func);
|
||||||
> = Box::new(func);
|
|
||||||
ffi::gst_pad_set_activate_function_full(
|
ffi::gst_pad_set_activate_function_full(
|
||||||
self.to_glib_none().0,
|
self.to_glib_none().0,
|
||||||
Some(trampoline_activate_function),
|
Some(trampoline_activate_function),
|
||||||
|
@ -1031,10 +1030,8 @@ unsafe extern "C" fn trampoline_activatemode_function(
|
||||||
active: glib_ffi::gboolean,
|
active: glib_ffi::gboolean,
|
||||||
) -> glib_ffi::gboolean {
|
) -> glib_ffi::gboolean {
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
||||||
let func: &&(Fn(&Pad, &Option<::Object>, ::PadMode, bool) -> bool
|
let func: &&(Fn(&Pad, &Option<::Object>, ::PadMode, bool) -> bool + Send + Sync + 'static) =
|
||||||
+ Send
|
transmute((*pad).activatemodedata);
|
||||||
+ Sync
|
|
||||||
+ 'static) = transmute((*pad).activatemodedata);
|
|
||||||
|
|
||||||
func(
|
func(
|
||||||
&from_glib_borrow(pad),
|
&from_glib_borrow(pad),
|
||||||
|
@ -1052,9 +1049,9 @@ unsafe extern "C" fn trampoline_chain_function(
|
||||||
) -> ffi::GstFlowReturn {
|
) -> ffi::GstFlowReturn {
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
||||||
let func: &&(Fn(&Pad, &Option<::Object>, ::Buffer) -> ::FlowReturn
|
let func: &&(Fn(&Pad, &Option<::Object>, ::Buffer) -> ::FlowReturn
|
||||||
+ Send
|
+ Send
|
||||||
+ Sync
|
+ Sync
|
||||||
+ 'static) = transmute((*pad).chaindata);
|
+ 'static) = transmute((*pad).chaindata);
|
||||||
|
|
||||||
func(
|
func(
|
||||||
&from_glib_borrow(pad),
|
&from_glib_borrow(pad),
|
||||||
|
@ -1071,9 +1068,9 @@ unsafe extern "C" fn trampoline_chain_list_function(
|
||||||
) -> ffi::GstFlowReturn {
|
) -> ffi::GstFlowReturn {
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
||||||
let func: &&(Fn(&Pad, &Option<::Object>, ::BufferList) -> ::FlowReturn
|
let func: &&(Fn(&Pad, &Option<::Object>, ::BufferList) -> ::FlowReturn
|
||||||
+ Send
|
+ Send
|
||||||
+ Sync
|
+ Sync
|
||||||
+ 'static) = transmute((*pad).chainlistdata);
|
+ 'static) = transmute((*pad).chainlistdata);
|
||||||
|
|
||||||
func(
|
func(
|
||||||
&from_glib_borrow(pad),
|
&from_glib_borrow(pad),
|
||||||
|
@ -1106,10 +1103,8 @@ unsafe extern "C" fn trampoline_event_full_function(
|
||||||
event: *mut ffi::GstEvent,
|
event: *mut ffi::GstEvent,
|
||||||
) -> ffi::GstFlowReturn {
|
) -> ffi::GstFlowReturn {
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
||||||
let func: &&(Fn(&Pad, &Option<::Object>, ::Event) -> ::FlowReturn
|
let func: &&(Fn(&Pad, &Option<::Object>, ::Event) -> ::FlowReturn + Send + Sync + 'static) =
|
||||||
+ Send
|
transmute((*pad).eventdata);
|
||||||
+ Sync
|
|
||||||
+ 'static) = transmute((*pad).eventdata);
|
|
||||||
|
|
||||||
func(
|
func(
|
||||||
&from_glib_borrow(pad),
|
&from_glib_borrow(pad),
|
||||||
|
@ -1128,9 +1123,9 @@ unsafe extern "C" fn trampoline_getrange_function(
|
||||||
) -> ffi::GstFlowReturn {
|
) -> ffi::GstFlowReturn {
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
||||||
let func: &&(Fn(&Pad, &Option<::Object>, u64, u32) -> Result<::Buffer, ::FlowError>
|
let func: &&(Fn(&Pad, &Option<::Object>, u64, u32) -> Result<::Buffer, ::FlowError>
|
||||||
+ Send
|
+ Send
|
||||||
+ Sync
|
+ Sync
|
||||||
+ 'static) = transmute((*pad).getrangedata);
|
+ 'static) = transmute((*pad).getrangedata);
|
||||||
|
|
||||||
match func(
|
match func(
|
||||||
&from_glib_borrow(pad),
|
&from_glib_borrow(pad),
|
||||||
|
@ -1169,9 +1164,9 @@ unsafe extern "C" fn trampoline_link_function(
|
||||||
) -> ffi::GstPadLinkReturn {
|
) -> ffi::GstPadLinkReturn {
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
||||||
let func: &&(Fn(&Pad, &Option<::Object>, &::Pad) -> ::PadLinkReturn
|
let func: &&(Fn(&Pad, &Option<::Object>, &::Pad) -> ::PadLinkReturn
|
||||||
+ Send
|
+ Send
|
||||||
+ Sync
|
+ Sync
|
||||||
+ 'static) = transmute((*pad).linkdata);
|
+ 'static) = transmute((*pad).linkdata);
|
||||||
|
|
||||||
func(
|
func(
|
||||||
&from_glib_borrow(pad),
|
&from_glib_borrow(pad),
|
||||||
|
@ -1187,10 +1182,8 @@ unsafe extern "C" fn trampoline_query_function(
|
||||||
query: *mut ffi::GstQuery,
|
query: *mut ffi::GstQuery,
|
||||||
) -> glib_ffi::gboolean {
|
) -> glib_ffi::gboolean {
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
|
||||||
let func: &&(Fn(&Pad, &Option<::Object>, &mut ::QueryRef) -> bool
|
let func: &&(Fn(&Pad, &Option<::Object>, &mut ::QueryRef) -> bool + Send + Sync + 'static) =
|
||||||
+ Send
|
transmute((*pad).querydata);
|
||||||
+ Sync
|
|
||||||
+ 'static) = transmute((*pad).querydata);
|
|
||||||
|
|
||||||
func(
|
func(
|
||||||
&from_glib_borrow(pad),
|
&from_glib_borrow(pad),
|
||||||
|
|
Loading…
Reference in a new issue