File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ serde_derive = {version="1", optional=true}
41
41
# This is for testing serde, unfortunately
42
42
# we can't specify feature-gated dev deps yet,
43
43
# see: https://github.com/rust-lang/cargo/issues/1596
44
- bincode = " 0.9 "
44
+ bincode = " 1.0 "
45
45
46
46
[target .'cfg(target_os = "cloudabi")' .dependencies ]
47
47
cloudabi = " 0.0.3"
Original file line number Diff line number Diff line change @@ -477,11 +477,11 @@ mod test {
477
477
478
478
let buf: Vec < u8 > = Vec :: new ( ) ;
479
479
let mut buf = BufWriter :: new ( buf) ;
480
- bincode:: serialize_into ( & mut buf, & rng, bincode :: Infinite ) . expect ( "Could not serialize" ) ;
480
+ bincode:: serialize_into ( & mut buf, & rng) . expect ( "Could not serialize" ) ;
481
481
482
482
let buf = buf. into_inner ( ) . unwrap ( ) ;
483
483
let mut read = BufReader :: new ( & buf[ ..] ) ;
484
- let mut deserialized: IsaacRng = bincode:: deserialize_from ( & mut read, bincode :: Infinite ) . expect ( "Could not deserialize" ) ;
484
+ let mut deserialized: IsaacRng = bincode:: deserialize_from ( & mut read) . expect ( "Could not deserialize" ) ;
485
485
486
486
assert_eq ! ( rng. index, deserialized. index) ;
487
487
/* Can't assert directly because of the array size */
Original file line number Diff line number Diff line change @@ -481,11 +481,11 @@ mod test {
481
481
482
482
let buf: Vec < u8 > = Vec :: new ( ) ;
483
483
let mut buf = BufWriter :: new ( buf) ;
484
- bincode:: serialize_into ( & mut buf, & rng, bincode :: Infinite ) . expect ( "Could not serialize" ) ;
484
+ bincode:: serialize_into ( & mut buf, & rng) . expect ( "Could not serialize" ) ;
485
485
486
486
let buf = buf. into_inner ( ) . unwrap ( ) ;
487
487
let mut read = BufReader :: new ( & buf[ ..] ) ;
488
- let mut deserialized: Isaac64Rng = bincode:: deserialize_from ( & mut read, bincode :: Infinite ) . expect ( "Could not deserialize" ) ;
488
+ let mut deserialized: Isaac64Rng = bincode:: deserialize_from ( & mut read) . expect ( "Could not deserialize" ) ;
489
489
490
490
assert_eq ! ( rng. index, deserialized. index) ;
491
491
assert_eq ! ( rng. half_used, deserialized. half_used) ;
Original file line number Diff line number Diff line change @@ -202,11 +202,11 @@ mod tests {
202
202
203
203
let buf: Vec < u8 > = Vec :: new ( ) ;
204
204
let mut buf = BufWriter :: new ( buf) ;
205
- bincode:: serialize_into ( & mut buf, & rng, bincode :: Infinite ) . expect ( "Could not serialize" ) ;
205
+ bincode:: serialize_into ( & mut buf, & rng) . expect ( "Could not serialize" ) ;
206
206
207
207
let buf = buf. into_inner ( ) . unwrap ( ) ;
208
208
let mut read = BufReader :: new ( & buf[ ..] ) ;
209
- let mut deserialized: XorShiftRng = bincode:: deserialize_from ( & mut read, bincode :: Infinite ) . expect ( "Could not deserialize" ) ;
209
+ let mut deserialized: XorShiftRng = bincode:: deserialize_from ( & mut read) . expect ( "Could not deserialize" ) ;
210
210
211
211
assert_eq ! ( rng. x, deserialized. x) ;
212
212
assert_eq ! ( rng. y, deserialized. y) ;
You can’t perform that action at this time.
0 commit comments