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>
This commit is contained in:
Sebastian Dröge 2023-11-13 17:41:06 +02:00
parent 39155ef81c
commit 636c76b03b

View file

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