diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-11-13 18:41:06 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2023-11-13 18:41:06 +0300 |
commit | 636c76b03bc82a63218f68fb1d650d80c5899fed (patch) | |
tree | 6d5ec8bd109f8c5d904ed1fcff5766eb8ffe09c7 /utils/uriplaylistbin | |
parent | 39155ef81cebc2fd72ce0cf06bc37d42598a8be7 (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>
Diffstat (limited to 'utils/uriplaylistbin')
-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 76324c089..3aefa25cc 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(); |