made clippy happy

This commit is contained in:
MaxOhn
2023-01-11 23:57:04 +01:00
parent 07ea95a6c0
commit 51a2092020
10 changed files with 22 additions and 20 deletions
+1 -1
View File
@@ -713,7 +713,7 @@ fn parse_custom_sound(sound: &str) -> u8 {
sound
.bytes()
.try_fold(0_u8, |sound, byte| match byte {
b'0'..=b'9' => Some(sound.wrapping_mul(10).wrapping_add((byte & 0xF) as u8)),
b'0'..=b'9' => Some(sound.wrapping_mul(10).wrapping_add(byte & 0xF)),
_ => None,
})
.unwrap_or(0)