Skip to content

Commit

Permalink
Fix 2024 compat lint error for reference eating
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo committed Feb 2, 2025
1 parent 09551cd commit 384cc93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn inner(encoded: &[u8]) -> Result<Vec<u8>, DecodeError> {
if let Some((_, pos)) = enc
.iter()
.zip(1_usize..) // start `pos` at 1 because we stripped off a leading 'x'
.find(|(&byte, _)| ALPHABET_TABLE[usize::from(byte)] == 0)
.find(|&(&byte, _)| ALPHABET_TABLE[usize::from(byte)] == 1)
{
return Err(DecodeError::InvalidByte(pos));
}
Expand Down

0 comments on commit 384cc93

Please sign in to comment.