about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSquirrel <gilescope@gmail.com>2021-02-15 07:39:15 +0000
committerGitHub <noreply@github.com>2021-02-15 07:39:15 +0000
commitd2ba68b24eba7e763b5e0937ab1ef6dcb5a09ca3 (patch)
tree696eeaa9ad066badeac03c27a79344e01461513c
parent17e238d78ee0baa33e560ec51ab636a2da7a2493 (diff)
downloadrust-d2ba68b24eba7e763b5e0937ab1ef6dcb5a09ca3.tar.gz
rust-d2ba68b24eba7e763b5e0937ab1ef6dcb5a09ca3.zip
Update methods.rs
Remove unused const
-rw-r--r--library/core/src/char/methods.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs
index 4e9dad9fd2c..64ae7db0d9b 100644
--- a/library/core/src/char/methods.rs
+++ b/library/core/src/char/methods.rs
@@ -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) {