auto merge of #13635 : richo/rust/no-output-from-serialize, r=sfackler

As an aside, it seems like a lint for libraries calling println! might be a useful thing?
This commit is contained in:
bors 2014-04-20 01:51:31 -07:00
commit 9b5b21951b

View File

@ -446,10 +446,7 @@ impl<E, D:Decoder<E>,T:Decodable<D, E>> Decodable<D, E> for ~[T] {
for i in range(0, len) {
v.push(try!(d.read_seq_elt(i, |d| Decodable::decode(d))));
}
println!("-------");
println!("{}", v.len());
let k = v.move_iter().collect::<~[T]>();
println!("{}", k.len());
Ok(k)
})
}