Switch to ascii uppercase function

This commit is contained in:
Colin Davidson 2016-01-16 22:27:56 -08:00
parent 80c4d01b7f
commit 04000436b1
1 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ use std::fmt;
use std::cmp::Ordering::{self, Less, Greater, Equal};
use std::{f32, f64};
use std::{u8, i64, u64};
use std::ascii::AsciiExt;
// Some of the tests of non-RNG-based functionality are randomized using the
// RNG-based functionality, so the RNG-based functionality needs to be enabled
@ -250,7 +251,7 @@ impl fmt::LowerHex for BigUint {
impl fmt::UpperHex for BigUint {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.to_str_radix(16).to_uppercase())
write!(f, "{}", self.to_str_radix(16).to_ascii_uppercase())
}
}