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:
Sebastian Dröge 2021-07-30 12:34:27 +03:00
parent c1905f2f24
commit 3fc45a9254

View file

@ -21,9 +21,9 @@ glib::wrapper! {
unref => |ptr| { unref => |ptr| {
cfg_if::cfg_if! { cfg_if::cfg_if! {
if #[cfg(feature = "v1_12_1")] { if #[cfg(feature = "v1_12_1")] {
ffi::gst_flow_combiner_unref(ptr) ffi::gst_flow_combiner_unref(ptr);
} else { } 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 _);
} }
} }
}, },