Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit 8dfcf0e

Browse files
committed
Merge branch 'master' into publish-0.11.0
2 parents 67d627c + bdf573a commit 8dfcf0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ os:
99
- osx
1010

1111
rust:
12-
- 1.20.0
12+
- 1.30.0
1313
- stable
1414
- nightly
1515

src/transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ mod test {
448448
{
449449
let mut cur = txn.open_ro_cursor(db).unwrap();
450450
let iter = cur.iter_dup_of(b"key1");
451-
let vals = iter.map(|(_,x)| x).collect::<Vec<_>>();
451+
let vals = iter.map(|x| x.unwrap()).map(|(_,x)| x).collect::<Vec<_>>();
452452
assert_eq!(vals, vec![b"val1", b"val2", b"val3"]);
453453

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

469469
let iter = cur.iter_dup_of(b"key2");

0 commit comments

Comments
 (0)