forked from mirrors/gstreamer-rs
base: Fix new clippy warning
error: statement can be reduced --> gstreamer-base/src/flow_combiner.rs:6:1 | 6 | / glib::wrapper! { 7 | | #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] 8 | | #[doc(alias = "GstFlowCombiner")] 9 | | pub struct FlowCombiner(Shared<ffi::GstFlowCombiner>); ... | 31 | | } 32 | | } | |_^
This commit is contained in:
parent
c1905f2f24
commit
3fc45a9254
1 changed files with 2 additions and 2 deletions
|
@ -21,9 +21,9 @@ glib::wrapper! {
|
|||
unref => |ptr| {
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(feature = "v1_12_1")] {
|
||||
ffi::gst_flow_combiner_unref(ptr)
|
||||
ffi::gst_flow_combiner_unref(ptr);
|
||||
} else {
|
||||
glib::gobject_ffi::g_boxed_free(ffi::gst_flow_combiner_get_type(), ptr as *mut _)
|
||||
glib::gobject_ffi::g_boxed_free(ffi::gst_flow_combiner_get_type(), ptr as *mut _);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue