Skip to content

Commit

Permalink
Update methods.rs
Browse files Browse the repository at this point in the history
Remove unused const
  • Loading branch information
gilescope committed Feb 15, 2021
1 parent 17e238d commit d2ba68b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/core/src/char/methods.rs
Expand Up @@ -332,7 +332,6 @@ impl char {
#[inline]
pub fn to_digit(self, radix: u32) -> Option<u32> {
assert!(radix <= 36, "to_digit: radix is too high (maximum 36)");
const ASCII_DIGIT_MASK: u32 = 0b11_0000;
// the code is split up here to improve execution speed for cases where
// the `radix` is constant and 10 or smaller
let val = if likely(radix <= 10) {
Expand Down

0 comments on commit d2ba68b

Please sign in to comment.