From dfb261ac9a200f148cbadaad469c17cf288721e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 30 May 2023 10:20:00 +0300 Subject: Fix a couple of trivial clippy warnings Part-of: --- generic/threadshare/examples/standalone/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'generic') diff --git a/generic/threadshare/examples/standalone/main.rs b/generic/threadshare/examples/standalone/main.rs index 54340ef4e..7498b6536 100644 --- a/generic/threadshare/examples/standalone/main.rs +++ b/generic/threadshare/examples/standalone/main.rs @@ -106,7 +106,6 @@ fn main() { let bus = pipeline.bus().unwrap(); let terminated_count = Arc::new(AtomicU32::new(0)); - let pipeline_clone = pipeline.clone(); let l_clone = l.clone(); let _bus_watch = bus .add_watch(move |_, msg| { @@ -163,11 +162,11 @@ fn main() { gst::info!(CAT, "Switching to Ready"); let stop = Instant::now(); - pipeline_clone.set_state(gst::State::Ready).unwrap(); + pipeline.set_state(gst::State::Ready).unwrap(); gst::info!(CAT, "Switching to Ready took {:.2?}", stop.elapsed()); gst::info!(CAT, "Shutting down"); let stop = Instant::now(); - pipeline_clone.set_state(gst::State::Null).unwrap(); + pipeline.set_state(gst::State::Null).unwrap(); gst::info!(CAT, "Shutting down took {:.2?}", stop.elapsed()); } -- cgit v1.2.3