Run cargo bench on rustc nightly in travis, remote useless move
This commit is contained in:
parent
2ed4b1f246
commit
0d7e13b034
|
@ -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