Skip to content

Commit

Permalink
chore: Resolve a nightly clippy::precedence lint
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Jan 6, 2025
1 parent 39267b5 commit f0f31bc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions h263/src/parser/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,12 @@ where
match self.read_bits(2)? {
0b00 => return Ok(HalfPel::from_unit(mantissa + bulk)),
0b10 => return Ok(HalfPel::from_unit(-(mantissa + bulk))),
0b01 => {
mantissa <<= 1;
bulk <<= 1;
}
0b11 => {
mantissa = mantissa << 1 | 1;
bulk <<= 1;
bits @ (0b01 | 0b11) => {
mantissa = (mantissa << 1) | (bits >> 1);
}
_ => return Err(Error::InternalDecoderError),
}
bulk <<= 1;
}

Err(Error::InvalidMvd)
Expand Down

0 comments on commit f0f31bc

Please sign in to comment.