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"