Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Dec 6, 2024
1 parent 0652ae7 commit b86a525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ impl LessEncoder {

let bit_depth = y4m_frame.luma_bit_depth();

if let (Planes::YCbCr(_), BitDepth::Depth12, false) = (&y4m_frame.planes, &bit_depth, width % 4 == 0) {
if let (Planes::YCbCr(_), BitDepth::Depth12, false) =
(&y4m_frame.planes, &bit_depth, width % 4 == 0)
{
return Err(Error::DataShapeProblem {
msg: "for bit depth 12 color, width must be divisible by 4",
#[cfg(feature = "backtrace")]
Expand Down

0 comments on commit b86a525

Please sign in to comment.