mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 04:51:09 +00:00
video: Fix two new clippy warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1238>
This commit is contained in:
parent
18cbbfb1f8
commit
6ef6f49e40
2 changed files with 2 additions and 4 deletions
|
@ -502,9 +502,7 @@ impl fmt::Debug for VideoFormatInfo {
|
||||||
{
|
{
|
||||||
fmt.field(
|
fmt.field(
|
||||||
"tile-info",
|
"tile-info",
|
||||||
&(0..self.n_planes())
|
&(0..self.n_planes()).map(|plane| self.tile_info(plane)),
|
||||||
.into_iter()
|
|
||||||
.map(|plane| self.tile_info(plane)),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -854,7 +854,7 @@ impl VideoInfo {
|
||||||
pub fn align_full(
|
pub fn align_full(
|
||||||
&mut self,
|
&mut self,
|
||||||
align: &mut crate::VideoAlignment,
|
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];
|
let mut plane_size = [0; crate::VIDEO_MAX_PLANES];
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Reference in a new issue