Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-11-13 18:41:06 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-11-13 18:41:06 +0300
commit636c76b03bc82a63218f68fb1d650d80c5899fed (patch)
tree6d5ec8bd109f8c5d904ed1fcff5766eb8ffe09c7
parent39155ef81cebc2fd72ce0cf06bc37d42598a8be7 (diff)
uriplaylistbin: Fix new clippy warning
warning: the borrowed expression implements the required traits --> utils/uriplaylistbin/src/uriplaylistbin/imp.rs:1691:32 | 1691 | self.obj().remove_many(&children_ref).unwrap(); | ^^^^^^^^^^^^^ help: change this to: `children_ref` Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1391>
-rw-r--r--utils/uriplaylistbin/src/uriplaylistbin/imp.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs
index 76324c08..3aefa25c 100644
--- a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs
+++ b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs
@@ -1687,8 +1687,7 @@ impl UriPlaylistBin {
fn stop(&self) {
// remove all children and pads
let children = self.obj().children();
- let children_ref = children.iter().collect::<Vec<_>>();
- self.obj().remove_many(&children_ref).unwrap();
+ self.obj().remove_many(children).unwrap();
for pad in self.obj().src_pads() {
self.obj().remove_pad(&pad).unwrap();