From a48035cd68b0e3ca78940ba63286fd4086dd7e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 13 May 2025 10:20:51 +0300 Subject: [PATCH] Fix some new clippy warnings Part-of: --- gstreamer/src/structure.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index 90fec79bf..ba1c9661d 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -1175,9 +1175,9 @@ impl<'a> Iterator for Iter<'a> { Some((f, v.unwrap())) } - fn last(self) -> Option { + fn last(mut self) -> Option { let structure = self.iter.structure; - let f = self.iter.last()?; + let f = self.iter.next_back()?; let v = structure.value(f); Some((f, v.unwrap())) }