Merge pull request #212 from TheBlueMatt/2019-01-travis-nightly-bench
Run cargo bench on rustc nightly in travis
This commit is contained in:
commit
b6ec6a0d62
|
@ -19,3 +19,4 @@ script:
|
|||
- cargo build --verbose --features=serde-decimal
|
||||
- cargo test --verbose --features=serde-decimal
|
||||
- if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd fuzz && cargo test --verbose && ./travis-fuzz.sh; fi
|
||||
- if [ "$(rustup show | grep default | grep nightly)" != "" ]; then cargo bench --features unstable; fi
|
||||
|
|
|
@ -130,7 +130,7 @@ mod benches {
|
|||
|
||||
assert_eq!(hex_bytes(&data).unwrap(), data_bytes);
|
||||
|
||||
b.iter(move || {
|
||||
b.iter(|| {
|
||||
hex_bytes(&data).unwrap()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue