1
Fork 0

extra: missed a couple @ in json

This commit is contained in:
Erick Tryzelaar 2013-11-29 21:26:03 -08:00
parent 6818b96a66
commit a7b311ac61
4 changed files with 19 additions and 15 deletions

View file

@ -346,7 +346,7 @@ mod test {
let mut writer = MemWriter::new();
let mut encoder = extra::json::Encoder::init(&mut writer as &mut io::Writer);
val.encode(&mut encoder);
str::from_utf8(*writer.inner_ref())
str::from_utf8_owned(writer.inner())
}
// produce a codemap::span