diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-11-13 18:41:06 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-12-18 10:52:20 +0300 |
commit | 2274c62db7ac1e13f460d663d3c906a817be8b3b (patch) | |
tree | 602385ae82c37ae2aee82c737eb1105334291df8 | |
parent | 022e9ce651c93899986b68854d1bb41dea38c821 (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/1410>
-rw-r--r-- | utils/uriplaylistbin/src/uriplaylistbin/imp.rs | 3 |
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(); |