Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
scottlamb committed Jun 18, 2024
1 parent 7749e4f commit 6d1a34d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ impl PixelFormat {
};
sizes.push(chroma_plane_size);
sizes.push(chroma_plane_size);
},
}
PixelFormat::BGRA => {
sizes.push(PlaneDims {
stride: width.checked_shl(2).expect("stride should not overflow"),
rows: height,
});
},
}
}
debug_assert_eq!(sizes.len(), self.num_planes());
sizes.into_iter()
Expand Down

0 comments on commit 6d1a34d

Please sign in to comment.