From 3ab6f2993d5d699e3b2ed0c10fb1221c8e54b7f0 Mon Sep 17 00:00:00 2001 From: Konstantin Zolotarev Date: Mon, 19 Feb 2024 19:46:42 +0200 Subject: [PATCH] Fixed linter for tests (#9) --- challenger/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenger/src/lib.rs b/challenger/src/lib.rs index 829b3b0..db82fe4 100644 --- a/challenger/src/lib.rs +++ b/challenger/src/lib.rs @@ -496,7 +496,7 @@ mod tests { let result = reject_challenged_pokes(pokes.clone(), challenges); assert_eq!(result.len(), 1); - let (_, meta) = result.get(0).unwrap(); + let (_, meta) = result.first().unwrap(); assert_eq!(meta.block_number, U64::from(3)); } @@ -552,7 +552,7 @@ mod tests { let result = reject_challenged_pokes(pokes.clone(), challenges); assert_eq!(result.len(), 2); - let (_, meta) = result.get(0).unwrap(); + let (_, meta) = result.first().unwrap(); assert_eq!(meta.block_number, U64::from(3)); let (_, meta2) = result.get(1).unwrap();