Skip to content

Commit 9324f49

Browse files
committed
Remove DVec from json
1 parent ae38935 commit 9324f49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/json.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ mod tests {
12981298
// and json... not sure where to put these tests.
12991299
#[test]
13001300
fn test_write_enum () {
1301-
let bw = @io::BytesWriter {bytes: dvec::DVec(), pos: 0};
1301+
let bw = @io::BytesWriter();
13021302
let bww : @io::Writer = (bw as @io::Writer);
13031303
let encoder = (@Encoder(bww) as @serialize::Encoder);
13041304
do encoder.emit_enum(~"animal") {
@@ -1319,7 +1319,7 @@ mod tests {
13191319
13201320
#[test]
13211321
fn test_write_some () {
1322-
let bw = @io::BytesWriter {bytes: dvec::DVec(), pos: 0};
1322+
let bw = @io::BytesWriter();
13231323
let bww : @io::Writer = (bw as @io::Writer);
13241324
let encoder = (@Encoder(bww) as @serialize::Encoder);
13251325
do encoder.emit_enum(~"Option") {
@@ -1335,7 +1335,7 @@ mod tests {
13351335

13361336
#[test]
13371337
fn test_write_none () {
1338-
let bw = @io::BytesWriter {bytes: dvec::DVec(), pos: 0};
1338+
let bw = @io::BytesWriter();
13391339
let bww : @io::Writer = (bw as @io::Writer);
13401340
let encoder = (@Encoder(bww) as @serialize::Encoder);
13411341
do encoder.emit_enum(~"Option") {

0 commit comments

Comments
 (0)