1
Fork 0

librustc: Update the serializer to work properly with INHTWAMA, removing mutable fields in the process

This commit is contained in:
Patrick Walton 2013-05-01 17:54:54 -07:00
parent 6f2e429041
commit dc5df61bc1
20 changed files with 5290 additions and 504 deletions

View file

@ -420,7 +420,8 @@ mod test {
#[cfg(test)] fn to_json_str<E : Encodable<std::json::Encoder>>(val: @E) -> ~str {
do io::with_str_writer |writer| {
val.encode(~std::json::Encoder(writer));
let mut encoder = std::json::Encoder(writer);
val.encode(&mut encoder);
}
}