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

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-12-22 17:40:18 +0300
committerSebastian Dröge <sebastian@centricular.com>2023-12-22 17:40:18 +0300
commit1ef47cb48e9eab22031298b288ce451506be3a33 (patch)
tree3cada774cf49a25e676999acaeea8ec5576c3b4d /utils
parent79b8610fbe35b9e3af9fe935872305c892b7809b (diff)
Fix a few new clippy 1.75 warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1415>
Diffstat (limited to 'utils')
-rw-r--r--utils/uriplaylistbin/src/uriplaylistbin/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs
index 3aefa25cc..38e9a93f7 100644
--- a/utils/uriplaylistbin/src/uriplaylistbin/imp.rs
+++ b/utils/uriplaylistbin/src/uriplaylistbin/imp.rs
@@ -1647,7 +1647,7 @@ impl UriPlaylistBin {
if let Some(state) = state_guard.as_mut() {
// first streaming item is the one actually being played
- if let Some(current) = state.streaming.get(0) {
+ if let Some(current) = state.streaming.first() {
let (mut current_iteration, current_uri_index) = (
(current.index() / uris_len) as u32,
(current.index() % uris_len) as u64,