Fix a couple of new Rust 1.69 clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1250>
This commit is contained in:
Sebastian Dröge 2023-04-20 16:42:39 +03:00
parent 145664ec0d
commit 86eb6c2bd8
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ impl<O: IsA<Aggregator>> 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"))]

View file

@ -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 {