Merge pull request #22 from mykmelez/update-minimum-rust-version

fix build bustage on obsolete and nightly Rust
without.crypto
Myk Melez 6 years ago committed by GitHub
commit bdf573ae97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .travis.yml
  2. 4
      src/transaction.rs

@ -9,7 +9,7 @@ os:
- osx - osx
rust: rust:
- 1.20.0 - 1.30.0
- stable - stable
- nightly - nightly

@ -448,7 +448,7 @@ mod test {
{ {
let mut cur = txn.open_ro_cursor(db).unwrap(); let mut cur = txn.open_ro_cursor(db).unwrap();
let iter = cur.iter_dup_of(b"key1"); let iter = cur.iter_dup_of(b"key1");
let vals = iter.map(|(_,x)| x).collect::<Vec<_>>(); let vals = iter.map(|x| x.unwrap()).map(|(_,x)| x).collect::<Vec<_>>();
assert_eq!(vals, vec![b"val1", b"val2", b"val3"]); assert_eq!(vals, vec![b"val1", b"val2", b"val3"]);
} }
@ -463,7 +463,7 @@ mod test {
{ {
let mut cur = txn.open_ro_cursor(db).unwrap(); let mut cur = txn.open_ro_cursor(db).unwrap();
let iter = cur.iter_dup_of(b"key1"); let iter = cur.iter_dup_of(b"key1");
let vals = iter.map(|(_,x)| x).collect::<Vec<_>>(); let vals = iter.map(|x| x.unwrap()).map(|(_,x)| x).collect::<Vec<_>>();
assert_eq!(vals, vec![b"val1", b"val3"]); assert_eq!(vals, vec![b"val1", b"val3"]);
let iter = cur.iter_dup_of(b"key2"); let iter = cur.iter_dup_of(b"key2");

Loading…
Cancel
Save