From 86eb6c2bd87ab41dcfc65fad55e8481c661c5521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 20 Apr 2023 16:42:39 +0300 Subject: [PATCH] Fix a couple of new Rust 1.69 clippy warnings Part-of: --- gstreamer-base/src/aggregator.rs | 2 +- gstreamer-pbutils/src/discoverer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer-base/src/aggregator.rs b/gstreamer-base/src/aggregator.rs index 2198dab12..9e511c030 100644 --- a/gstreamer-base/src/aggregator.rs +++ b/gstreamer-base/src/aggregator.rs @@ -105,7 +105,7 @@ impl> AggregatorExtManual for O { #[cfg_attr(feature = "dox", doc(cfg(feature = "v1_16")))] fn set_min_upstream_latency(&self, min_upstream_latency: gst::ClockTime) { self.as_ref() - .set_property("min-upstream-latency", &min_upstream_latency); + .set_property("min-upstream-latency", min_upstream_latency); } #[cfg(any(feature = "v1_16", feature = "dox"))] diff --git a/gstreamer-pbutils/src/discoverer.rs b/gstreamer-pbutils/src/discoverer.rs index 53df28a90..8fddcba1e 100644 --- a/gstreamer-pbutils/src/discoverer.rs +++ b/gstreamer-pbutils/src/discoverer.rs @@ -12,7 +12,7 @@ use crate::auto::Discoverer; impl Discoverer { pub fn set_timeout(&self, timeout: gst::ClockTime) { - self.set_property("timeout", &timeout); + self.set_property("timeout", timeout); } pub fn timeout(&self) -> gst::ClockTime {