Run cargo bench on rustc nightly in travis, remote useless move

This commit is contained in:
Matt Corallo 2019-01-15 11:39:41 -05:00
parent 2ed4b1f246
commit 0d7e13b034
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -130,7 +130,7 @@ mod benches {
assert_eq!(hex_bytes(&data).unwrap(), data_bytes);
b.iter(move || {
b.iter(|| {
hex_bytes(&data).unwrap()
})
}