rm obsolete integer to_str{,_radix} free functions
This commit is contained in:
parent
0d72f604b7
commit
46fc549fa9
27 changed files with 104 additions and 152 deletions
|
|
@ -89,13 +89,11 @@ impl Results {
|
|||
let mut set = f();
|
||||
do timed(&mut self.sequential_strings) {
|
||||
for i in range(0u, num_keys) {
|
||||
let s = uint::to_str(i);
|
||||
set.insert(s);
|
||||
set.insert(i.to_str());
|
||||
}
|
||||
|
||||
for i in range(0u, num_keys) {
|
||||
let s = uint::to_str(i);
|
||||
assert!(set.contains(&s));
|
||||
assert!(set.contains(&i.to_str()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -104,7 +102,7 @@ impl Results {
|
|||
let mut set = f();
|
||||
do timed(&mut self.random_strings) {
|
||||
for _ in range(0, num_keys) {
|
||||
let s = uint::to_str(rng.next() as uint);
|
||||
let s = (rng.next() as uint).to_str();
|
||||
set.insert(s);
|
||||
}
|
||||
}
|
||||
|
|
@ -113,11 +111,11 @@ impl Results {
|
|||
{
|
||||
let mut set = f();
|
||||
for i in range(0u, num_keys) {
|
||||
set.insert(uint::to_str(i));
|
||||
set.insert(i.to_str());
|
||||
}
|
||||
do timed(&mut self.delete_strings) {
|
||||
for i in range(0u, num_keys) {
|
||||
assert!(set.remove(&uint::to_str(i)));
|
||||
assert!(set.remove(&i.to_str()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ fn main() {
|
|||
let n = uint::from_str(args[1]).unwrap();
|
||||
|
||||
for i in range(0u, n) {
|
||||
let x = uint::to_str(i);
|
||||
let x = i.to_str();
|
||||
info!(x);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ fn main() {
|
|||
let elapsed = stop - start;
|
||||
|
||||
out.write_line(fmt!("%d\t%d\t%s", n, fibn,
|
||||
u64::to_str(elapsed)));
|
||||
elapsed.to_str()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue