Skip to content

Commit

Permalink
chore: Fix clippy nightly nit (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Feb 6, 2024
1 parent 6ef2c5e commit a8a8686
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions neqo-common/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ impl<'a> Decoder<'a> {

/// Decodes a QUIC varint.
pub fn decode_varint(&mut self) -> Option<u64> {
let Some(b1) = self.decode_byte() else {
return None;
};
let b1 = self.decode_byte()?;
match b1 >> 6 {
0 => Some(u64::from(b1 & 0x3f)),
1 => Some((u64::from(b1 & 0x3f) << 8) | self.decode_uint(1)?),
Expand Down

0 comments on commit a8a8686

Please sign in to comment.