Skip to content

Commit

Permalink
Use std::fmt::radix instead of to_str_radix.
Browse files Browse the repository at this point in the history
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
  • Loading branch information
omasanori committed Jul 10, 2014
1 parent 66e1f11 commit 780a829
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcollections/hash/sip.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

5 comments on commit 780a829

@bors
Copy link
Contributor

@bors bors commented on 780a829 Jul 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 780a829 Jul 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging omasanori/rust/radix = 780a829 into auto

@bors
Copy link
Contributor

@bors bors commented on 780a829 Jul 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omasanori/rust/radix = 780a829 merged ok, testing candidate = e11e094

@bors
Copy link
Contributor

@bors bors commented on 780a829 Jul 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = e11e094

Please sign in to comment.