From d44a1a4245ba10b605f7142731b6aab2e40694e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Jan 2023 12:42:47 +0200 Subject: [PATCH] Fix some clippy warnings Part-of: --- utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs | 7 +------ utils/uriplaylistbin/src/uriplaylistbin/imp.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs index 8db7e28a..2159f27a 100644 --- a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs @@ -338,13 +338,8 @@ impl CustomSource { gst::debug!(CAT, imp: self, "Source signalled no-more-pads"); let state = self.state.lock().unwrap(); - let streams = state - .pads - .iter() - .map(|p| p.stream.clone()) - .collect::>(); let collection = gst::StreamCollection::builder(None) - .streams(streams) + .streams(state.pads.iter().map(|p| p.stream.clone())) .build(); drop(state); diff --git a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs index fc016e1b..d05abf83 100644 --- a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs +++ b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs @@ -855,7 +855,7 @@ impl BinImpl for UriPlaylistBin { let state = state_guard.as_mut().unwrap(); let src = error.src().unwrap(); - let item = state.find_item_from_src(&src); + let item = state.find_item_from_src(src); drop(state_guard);