Skip to content

Commit

Permalink
Fixed linter for tests (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinzolotarev authored Feb 19, 2024
1 parent 7f947b8 commit 3ab6f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions challenger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3ab6f29

Please sign in to comment.