mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-22 16:16:37 +00:00
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
6ad0e9e0a0
commit
044a72d9f6
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