Skip to content

Commit

Permalink
Replace iterator skip/next with nth.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders429 committed Jun 7, 2024
1 parent 938ed2d commit 66fa40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gba_test/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ where
}

pub(crate) fn get(&self, index: usize) -> Option<(&dyn TestCase, Outcome<&'static str>)> {
self.iter().skip(index).next()
self.iter().nth(index)
}
}

Expand Down

0 comments on commit 66fa40b

Please sign in to comment.