mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 06:50:59 +00:00
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:
parent
39155ef81c
commit
636c76b03b
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue