about summary refs log tree commit diff
path: root/src/libstd/hash.rs
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-08-17 22:47:54 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-08-20 22:05:03 -0400
commit46fc549fa98d473f925b04e53d08f26c2e15bc2a (patch)
treeece6425698c9bf30a637e4cffc5b5a4fb721083b /src/libstd/hash.rs
parent0d72f604b7da4f03e7b30466af6b8b55f16c207b (diff)
downloadrust-46fc549fa98d473f925b04e53d08f26c2e15bc2a.tar.gz
rust-46fc549fa98d473f925b04e53d08f26c2e15bc2a.zip
rm obsolete integer to_str{,_radix} free functions
Diffstat (limited to 'src/libstd/hash.rs')
-rw-r--r--src/libstd/hash.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libstd/hash.rs b/src/libstd/hash.rs
index f3df42f7a43..21b7ee321e8 100644
--- a/src/libstd/hash.rs
+++ b/src/libstd/hash.rs
@@ -27,8 +27,8 @@ use option::{Some, None};
 use rt::io::Writer;
 use str::OwnedStr;
 use to_bytes::IterBytes;
-use uint;
 use vec::ImmutableVector;
+use num::ToStrRadix;
 
 // Alias `SipState` to `State`.
 pub use State = hash::SipState;
@@ -386,7 +386,7 @@ impl Streaming for SipState {
         let r = self.result_bytes();
         let mut s = ~"";
         for b in r.iter() {
-            s.push_str(uint::to_str_radix(*b as uint, 16u));
+            s.push_str((*b as uint).to_str_radix(16u));
         }
         s
     }
@@ -407,8 +407,6 @@ mod tests {
     use super::*;
     use prelude::*;
 
-    use uint;
-
     // Hash just the bytes of the slice, without length prefix
     struct Bytes<'self>(&'self [u8]);
     impl<'self> IterBytes for Bytes<'self> {
@@ -496,7 +494,7 @@ mod tests {
         fn to_hex_str(r: &[u8, ..8]) -> ~str {
             let mut s = ~"";
             for b in r.iter() {
-                s.push_str(uint::to_str_radix(*b as uint, 16u));
+                s.push_str((*b as uint).to_str_radix(16u));
             }
             s
         }