Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
smallstepman committed Jan 4, 2022
1 parent 24421bc commit bff3ad3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ impl Iterator for TestEngine {
match self.test_cases.iter().next() {
Some((k, v)) => {
let result = (self.func)(k.clone()) == *v;
self.test_cases.remove(&k.clone());
let k = k.clone();
self.test_cases.remove(&k);
Some(result)
}
None => None,
Expand Down

0 comments on commit bff3ad3

Please sign in to comment.