Skip to content

Commit d2ba68b

Browse files
authored
Update methods.rs
Remove unused const
1 parent 17e238d commit d2ba68b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: library/core/src/char/methods.rs

-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ impl char {
332332
#[inline]
333333
pub fn to_digit(self, radix: u32) -> Option<u32> {
334334
assert!(radix <= 36, "to_digit: radix is too high (maximum 36)");
335-
const ASCII_DIGIT_MASK: u32 = 0b11_0000;
336335
// the code is split up here to improve execution speed for cases where
337336
// the `radix` is constant and 10 or smaller
338337
let val = if likely(radix <= 10) {

0 commit comments

Comments
 (0)