From fc7fb021fdff3d254bb1bb01c895e985877af7bd Mon Sep 17 00:00:00 2001 From: Richard Pringle Date: Fri, 20 Oct 2023 14:42:07 -0400 Subject: [PATCH] Cleanup insert example verification (#325) --- firewood/examples/insert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewood/examples/insert.rs b/firewood/examples/insert.rs index a65e8357e..56dc7e021 100644 --- a/firewood/examples/insert.rs +++ b/firewood/examples/insert.rs @@ -114,7 +114,7 @@ async fn verify_keys( let hash = db.root_hash().await?; let revision = db.revision(hash).await?; for (key, value) in verify { - assert_eq!(*value, revision.val(key).await?.unwrap()); + assert_eq!(Some(value), revision.val(key).await?); } } Ok(())