oldmap: get rid of legacy _ref suffixes

This commit is contained in:
Daniel Micay 2013-02-08 17:08:02 -05:00
parent f529af0d50
commit a32c5c73ee
49 changed files with 135 additions and 137 deletions

View file

@ -49,7 +49,7 @@ fn sort_and_fmt(mm: HashMap<~[u8], uint>, total: uint) -> ~str {
let mut pairs = ~[];
// map -> [(k,%)]
for mm.each_ref |&key, &val| {
for mm.each |&key, &val| {
pairs.push((key, pct(val, total)));
}

View file

@ -134,7 +134,7 @@ fn writer(path: ~str, pport: pipes::Port<Line>, size: uint)
done += 1_u;
let mut prev = done;
while prev <= i {
if lines.contains_key_ref(&prev) {
if lines.contains_key(&prev) {
debug!("WS %u", prev);
cout.write(lines.get(&prev));
done += 1_u;