Skip to content

Commit

Permalink
Move const def nearer usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilescope committed Feb 14, 2021
1 parent daa55ac commit 33d8b04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/core/src/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ use crate::intrinsics;
use crate::mem;
use crate::str::FromStr;

/// If 6th bit set ascii is upper case.
const ASCII_CASE_MASK: u8 = 0b0010_0000;

// Used because the `?` operator is not allowed in a const context.
macro_rules! try_opt {
($e:expr) => {
Expand Down Expand Up @@ -155,6 +152,9 @@ impl isize {
usize_isize_to_xe_bytes_doc!(), usize_isize_from_xe_bytes_doc!() }
}

/// If 6th bit set ascii is upper case.
const ASCII_CASE_MASK: u8 = 0b0010_0000;

#[lang = "u8"]
impl u8 {
uint_impl! { u8, u8, 8, 255, 2, "0x82", "0xa", "0x12", "0x12", "0x48", "[0x12]",
Expand Down

0 comments on commit 33d8b04

Please sign in to comment.