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 @@ -2079,18 +2079,18 @@ mod tests {
2079
2079
#[ cfg( feature = "serde" ) ]
2080
2080
#[ test]
2081
2081
fn test_serde ( ) {
2082
- use self :: bincode:: { serialize , deserialize, Bounded } ;
2082
+ use self :: bincode:: { config , deserialize} ;
2083
2083
let mut small_vec: SmallVec < [ i32 ; 2 ] > = SmallVec :: new ( ) ;
2084
2084
small_vec. push ( 1 ) ;
2085
- let encoded = serialize ( & small_vec , Bounded ( 100 ) ) . unwrap ( ) ;
2085
+ let encoded = config ( ) . limit ( 100 ) . serialize ( & small_vec ) . unwrap ( ) ;
2086
2086
let decoded: SmallVec < [ i32 ; 2 ] > = deserialize ( & encoded) . unwrap ( ) ;
2087
2087
assert_eq ! ( small_vec, decoded) ;
2088
2088
small_vec. push ( 2 ) ;
2089
2089
// Spill the vec
2090
2090
small_vec. push ( 3 ) ;
2091
2091
small_vec. push ( 4 ) ;
2092
2092
// Check again after spilling.
2093
- let encoded = serialize ( & small_vec , Bounded ( 100 ) ) . unwrap ( ) ;
2093
+ let encoded = config ( ) . limit ( 100 ) . serialize ( & small_vec ) . unwrap ( ) ;
2094
2094
let decoded: SmallVec < [ i32 ; 2 ] > = deserialize ( & encoded) . unwrap ( ) ;
2095
2095
assert_eq ! ( small_vec, decoded) ;
2096
2096
}
You can’t perform that action at this time.
0 commit comments