diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-03-07 23:44:38 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-03-08 09:56:52 -0500 |
| commit | 62651df2b482af4dc98b0aec6c5f1ad112fab8ec (patch) | |
| tree | 70dd00fbb69807cc2dcab84b9ad5803fe06e57bf /src/libsyntax/parse | |
| parent | 59de3853be3b7d9e5306522bdfdb76be69555703 (diff) | |
| download | rust-62651df2b482af4dc98b0aec6c5f1ad112fab8ec.tar.gz rust-62651df2b482af4dc98b0aec6c5f1ad112fab8ec.zip | |
Fix dvec-related fallout in tests
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 48d3fbe8889..a1fc7230dd1 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -303,9 +303,9 @@ mod test { use util::testing::*; #[test] fn to_json_str (val: Encodable<std::json::Encoder>) -> ~str { - let bw = @io::BytesWriter(); - val.encode(~std::json::Encoder(bw as io::Writer)); - str::from_bytes(bw.bytes.data) + do io::with_str_writer |writer| { + val.encode(~std::json::Encoder(writer)); + } } #[test] fn alltts () { |
