Fix a couple of new Rust 1.69 clippy warnings

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

View file

@ -104,7 +104,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 {