Skip to content

Commit 389a74d

Browse files
committed
update tests
1 parent bbdb34f commit 389a74d

File tree

4 files changed

+89
-62
lines changed

4 files changed

+89
-62
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ipld/hamt/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ identity = []
2828
[dev-dependencies]
2929
hex = { workspace = true }
3030
criterion = { workspace = true }
31+
itertools = { workspace = true}
3132
unsigned-varint = { workspace = true }
3233
quickcheck = { workspace = true }
3334
quickcheck_macros = { workspace = true }

ipld/hamt/src/hamt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,13 @@ where
511511
/// assert_eq!(results.len(), 2);
512512
///
513513
/// // Read the rest then sort.
514-
/// for res in hamt.iter_from(results.last().unwrap().0)?.skip(1) {
514+
/// for res in hamt.iter_from(results.last().unwrap().0.as_ref())?.skip(1) {
515515
/// results.push((res?));
516516
/// }
517517
/// results.sort_by_key(|kv| kv.1.clone());
518518
///
519519
/// // Assert that we got out what we put in.
520-
/// let results: Vec<_> = results.into_iter().map(|(k, v)|(k.clone(), v.as_ref().clone())).collect();
520+
/// let results: Vec<_> = results.into_iter().map(|(k, v)|(k.as_ref().clone(), v.as_ref().clone())).collect();
521521
/// assert_eq!(kvs, results);
522522
///
523523
/// # anyhow::Ok(())

0 commit comments

Comments
 (0)