File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
script : |
7
7
cargo build --verbose &&
8
8
cargo test --verbose &&
9
+ cargo test --verbose --features serde &&
9
10
([ $TRAVIS_RUST_VERSION != nightly ] || cargo check --verbose --no-default-features) &&
10
11
([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --features union) &&
12
+ ([ $TRAVIS_RUST_VERSION != nightly ] || cargo test --verbose --all-features) &&
11
13
([ $TRAVIS_RUST_VERSION != nightly ] || cargo bench --verbose bench)
12
14
notifications :
13
15
webhooks : http://build.servo.org:54856/travis
Original file line number Diff line number Diff line change @@ -2066,18 +2066,18 @@ mod tests {
2066
2066
#[ cfg( feature = "serde" ) ]
2067
2067
#[ test]
2068
2068
fn test_serde ( ) {
2069
- use self :: bincode:: { serialize , deserialize, Bounded } ;
2069
+ use self :: bincode:: { config , deserialize} ;
2070
2070
let mut small_vec: SmallVec < [ i32 ; 2 ] > = SmallVec :: new ( ) ;
2071
2071
small_vec. push ( 1 ) ;
2072
- let encoded = serialize ( & small_vec , Bounded ( 100 ) ) . unwrap ( ) ;
2072
+ let encoded = config ( ) . limit ( 100 ) . serialize ( & small_vec ) . unwrap ( ) ;
2073
2073
let decoded: SmallVec < [ i32 ; 2 ] > = deserialize ( & encoded) . unwrap ( ) ;
2074
2074
assert_eq ! ( small_vec, decoded) ;
2075
2075
small_vec. push ( 2 ) ;
2076
2076
// Spill the vec
2077
2077
small_vec. push ( 3 ) ;
2078
2078
small_vec. push ( 4 ) ;
2079
2079
// Check again after spilling.
2080
- let encoded = serialize ( & small_vec , Bounded ( 100 ) ) . unwrap ( ) ;
2080
+ let encoded = config ( ) . limit ( 100 ) . serialize ( & small_vec ) . unwrap ( ) ;
2081
2081
let decoded: SmallVec < [ i32 ; 2 ] > = deserialize ( & encoded) . unwrap ( ) ;
2082
2082
assert_eq ! ( small_vec, decoded) ;
2083
2083
}
You can’t perform that action at this time.
0 commit comments