diff options
| author | bors <bors@rust-lang.org> | 2014-07-11 05:36:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-11 05:36:37 +0000 |
| commit | e11e094c0a90e1a518ea996f826abdf3ad0e4cbb (patch) | |
| tree | 738ef31fe91e4366368808b54780044ba94a105d | |
| parent | b57d272e9908e164a72bd1a688141031705e1208 (diff) | |
| parent | 780a8291aae59a67e4c0633f57ffdfbd51312d1b (diff) | |
auto merge of #15570 : omasanori/rust/radix, r=alexcrichton
| -rw-r--r-- | src/libcollections/hash/sip.rs | 6 |
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 } |
