Fix fallout from coercion removal

This commit is contained in:
Nick Cameron 2014-11-17 21:39:01 +13:00
parent 803aacd5ae
commit ca08540a00
142 changed files with 1269 additions and 1283 deletions

View file

@ -38,7 +38,7 @@ pub fn to_str_bytes<U>(n: $T, radix: uint, f: |v: &[u8]| -> U) -> U {
// base 2 number, and then we need another for a possible '-' character.
let mut buf = [0u8, ..65];
let amt = {
let mut wr = ::io::BufWriter::new(buf);
let mut wr = ::io::BufWriter::new(&mut buf);
(write!(&mut wr, "{}", ::fmt::radix(n, radix as u8))).unwrap();
wr.tell().unwrap() as uint
};