about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOGINO Masanori <masanori.ogino@gmail.com>2014-07-10 16:14:35 +0900
committerOGINO Masanori <masanori.ogino@gmail.com>2014-07-10 16:16:47 +0900
commit780a8291aae59a67e4c0633f57ffdfbd51312d1b (patch)
tree3a26bd2004d7a35aed1977ef307f6e7e3cf8d42d /src
parent66e1f11ef482d90f2ea3bd284b07cd825315fadd (diff)
downloadrust-780a8291aae59a67e4c0633f57ffdfbd51312d1b.tar.gz
rust-780a8291aae59a67e4c0633f57ffdfbd51312d1b.zip
Use std::fmt::radix instead of to_str_radix.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/hash/sip.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcollections/hash/sip.rs b/src/libcollections/hash/sip.rs
index 4fd98538af7..1c7e03f70c8 100644
--- a/src/libcollections/hash/sip.rs
+++ b/src/libcollections/hash/sip.rs
@@ -269,7 +269,7 @@ pub fn hash_with_keys<T: Hash<SipState>>(k0: u64, k1: u64, value: &T) -> u64 {
 mod tests {
     use test::Bencher;
     use std::prelude::*;
-    use std::num::ToStrRadix;
+    use std::fmt;
 
     use str::Str;
     use string::String;
@@ -370,7 +370,7 @@ mod tests {
         fn to_hex_str(r: &[u8, ..8]) -> String {
             let mut s = String::new();
             for b in r.iter() {
-                s.push_str((*b as uint).to_str_radix(16u).as_slice());
+                s.push_str(format!("{}", fmt::radix(*b, 16)).as_slice());
             }
             s
         }
@@ -391,7 +391,7 @@ mod tests {
             let r = result_bytes(h);
             let mut s = String::new();
             for b in r.iter() {
-                s.push_str((*b as uint).to_str_radix(16u).as_slice());
+                s.push_str(format!("{}", fmt::radix(*b, 16)).as_slice());
             }
             s
         }