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 {