video: Fix two new clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1228>
This commit is contained in:
Sebastian Dröge 2023-03-07 10:41:19 +02:00
parent 37785b222a
commit 4b112a9bb8
2 changed files with 2 additions and 4 deletions

View file

@ -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)),
);
}

View file

@ -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 {