From d2ba68b24eba7e763b5e0937ab1ef6dcb5a09ca3 Mon Sep 17 00:00:00 2001 From: Squirrel Date: Mon, 15 Feb 2021 07:39:15 +0000 Subject: [PATCH] Update methods.rs Remove unused const --- library/core/src/char/methods.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/library/core/src/char/methods.rs b/library/core/src/char/methods.rs index 4e9dad9fd2c1a..64ae7db0d9b53 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 { 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) {