From 6dba80058e132ed2ac5f85af305d3bbf93fc7f24 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sat, 30 Dec 2023 08:04:12 +0100 Subject: [PATCH] chore: fix clippy lints --- commit_verify/src/mpc/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit_verify/src/mpc/block.rs b/commit_verify/src/mpc/block.rs index b6ab158c..7490454c 100644 --- a/commit_verify/src/mpc/block.rs +++ b/commit_verify/src/mpc/block.rs @@ -666,7 +666,7 @@ mod test { let (pid, msg) = msgs.first_key_value().unwrap(); let leaf = Leaf::inhabited(*pid, *msg); - let cid1 = block.cross_section.get(0).unwrap().to_merkle_node(); + let cid1 = block.cross_section.first().unwrap().to_merkle_node(); let cid2 = leaf.commitment_id(); assert_eq!(cid1, cid2);