File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1298,7 +1298,7 @@ mod tests {
1298
1298
// and json... not sure where to put these tests.
1299
1299
#[ test]
1300
1300
fn test_write_enum ( ) {
1301
- let bw = @io:: BytesWriter { bytes : dvec :: DVec ( ) , pos : 0 } ;
1301
+ let bw = @io:: BytesWriter ( ) ;
1302
1302
let bww : @io:: Writer = ( bw as @io:: Writer ) ;
1303
1303
let encoder = ( @Encoder ( bww) as @serialize:: Encoder ) ;
1304
1304
do encoder. emit_enum( ~"animal") {
@@ -1319,7 +1319,7 @@ mod tests {
1319
1319
1320
1320
#[test]
1321
1321
fn test_write_some () {
1322
- let bw = @io::BytesWriter {bytes: dvec::DVec(), pos: 0} ;
1322
+ let bw = @io::BytesWriter() ;
1323
1323
let bww : @io::Writer = (bw as @io::Writer);
1324
1324
let encoder = (@Encoder(bww) as @serialize::Encoder);
1325
1325
do encoder.emit_enum(~" Option ") {
@@ -1335,7 +1335,7 @@ mod tests {
1335
1335
1336
1336
#[ test]
1337
1337
fn test_write_none ( ) {
1338
- let bw = @io:: BytesWriter { bytes : dvec :: DVec ( ) , pos : 0 } ;
1338
+ let bw = @io:: BytesWriter ( ) ;
1339
1339
let bww : @io:: Writer = ( bw as @io:: Writer ) ;
1340
1340
let encoder = ( @Encoder ( bww) as @serialize:: Encoder ) ;
1341
1341
do encoder. emit_enum( ~"Option ") {
You can’t perform that action at this time.
0 commit comments