From 0104da9ba080df0fd794e0f6df1bab7ee31792ef Mon Sep 17 00:00:00 2001 From: borispovod Date: Fri, 24 Nov 2023 03:38:58 +0400 Subject: [PATCH] fix(tests): clippy checks --- src/derive/stages/attributes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/derive/stages/attributes.rs b/src/derive/stages/attributes.rs index f5172699..f70aa903 100644 --- a/src/derive/stages/attributes.rs +++ b/src/derive/stages/attributes.rs @@ -458,7 +458,7 @@ mod tests { assert_eq!(transactions.len(), 2, "wrong transactions length"); let (deposited_epoch, seq_number) = - transactions.get(0).unwrap().derive_unsafe_epoch().unwrap(); + transactions.first().unwrap().derive_unsafe_epoch().unwrap(); assert_eq!( deposited_epoch, new_epoch, "wrong epoch in deposited transaction"