Modify digit check to be more readable
@@ -653,7 +653,7 @@ where
// Test if a digit is of a certain radix.
fn is_digit_of_radix(c: Option<char>, radix: u32) -> bool {
match radix {
- 2 | 8 | 10 | 16 => matches!(c, Some(c) if c.is_digit(radix)),
+ 2 | 8 | 10 | 16 => c.filter(|c| c.is_digit(radix)).is_some(),
other => fatal_compiler_bug(&format!("Radix not implemented: {}", other)),
}
}
