From 04000436b162fc11cb5f8c55855e8a308054c204 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Sat, 16 Jan 2016 22:27:56 -0800 Subject: [PATCH] Switch to ascii uppercase function --- src/bigint.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bigint.rs b/src/bigint.rs index 07de81e..4acc2ac 100644 --- a/src/bigint.rs +++ b/src/bigint.rs @@ -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()) } }