We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17e238d commit d2ba68bCopy full SHA for d2ba68b
library/core/src/char/methods.rs
@@ -332,7 +332,6 @@ impl char {
332
#[inline]
333
pub fn to_digit(self, radix: u32) -> Option<u32> {
334
assert!(radix <= 36, "to_digit: radix is too high (maximum 36)");
335
- const ASCII_DIGIT_MASK: u32 = 0b11_0000;
336
// the code is split up here to improve execution speed for cases where
337
// the `radix` is constant and 10 or smaller
338
let val = if likely(radix <= 10) {
0 commit comments