From 044a72d9f6dbd8740fb986bcbc9abb2a6f9ff4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 30 Jul 2021 12:34:27 +0300 Subject: [PATCH] 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); ... | 31 | | } 32 | | } | |_^ --- gstreamer-base/src/flow_combiner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer-base/src/flow_combiner.rs b/gstreamer-base/src/flow_combiner.rs index 4c6bfe6ee..61dfb45fc 100644 --- a/gstreamer-base/src/flow_combiner.rs +++ b/gstreamer-base/src/flow_combiner.rs @@ -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 _); } } },