We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb9d497 commit e476263Copy full SHA for e476263
1 file changed
src/game.rs
@@ -204,7 +204,7 @@ impl<'a> Game<'a> {
204
heap.push(guess);
205
let new_best = heap.peek().unwrap();
206
if new_best.optimization_done {
207
- lg.optimization = OptimizationStatus::Done(heap.pop().unwrap());
+ lg.optimization = OptimizationStatus::Done(new_best);
208
}
209
210
OptimizationStatus::Unstarted => {
0 commit comments