From 4b112a9bb85d87c1ddb6a2c491b2a38085ac28cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 7 Mar 2023 10:41:19 +0200 Subject: [PATCH] video: Fix two new clippy warnings Part-of: --- gstreamer-video/src/video_format_info.rs | 4 +--- gstreamer-video/src/video_info.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gstreamer-video/src/video_format_info.rs b/gstreamer-video/src/video_format_info.rs index ed9a74009..3f1994145 100644 --- a/gstreamer-video/src/video_format_info.rs +++ b/gstreamer-video/src/video_format_info.rs @@ -502,9 +502,7 @@ impl fmt::Debug for VideoFormatInfo { { fmt.field( "tile-info", - &(0..self.n_planes()) - .into_iter() - .map(|plane| self.tile_info(plane)), + &(0..self.n_planes()).map(|plane| self.tile_info(plane)), ); } diff --git a/gstreamer-video/src/video_info.rs b/gstreamer-video/src/video_info.rs index e171fe386..3957647c4 100644 --- a/gstreamer-video/src/video_info.rs +++ b/gstreamer-video/src/video_info.rs @@ -854,7 +854,7 @@ impl VideoInfo { pub fn align_full( &mut self, align: &mut crate::VideoAlignment, - ) -> Result<([usize; crate::VIDEO_MAX_PLANES]), glib::BoolError> { + ) -> Result<[usize; crate::VIDEO_MAX_PLANES], glib::BoolError> { let mut plane_size = [0; crate::VIDEO_MAX_PLANES]; unsafe {