Fix some clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1035>
This commit is contained in:
Sebastian Dröge 2023-01-05 12:42:47 +02:00
parent 781fd1df9a
commit d44a1a4245
2 changed files with 2 additions and 7 deletions

View file

@ -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::<Vec<_>>();
let collection = gst::StreamCollection::builder(None)
.streams(streams)
.streams(state.pads.iter().map(|p| p.stream.clone()))
.build();
drop(state);

View file

@ -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);