Minimizer fix (#2500)

* Clear potentially out of date id

* fmt

* add mut
This commit is contained in:
Sharad Khanna 2024-08-26 22:26:36 -04:00 committed by GitHub
parent 3ca906b7d3
commit a8bccf9f25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -238,6 +238,8 @@ where
.scheduler_mut() .scheduler_mut()
.on_remove(state, id, &Some(removed))?; .on_remove(state, id, &Some(removed))?;
} }
*state.corpus_mut().current_mut() = None; //we may have removed the current ID from the corpus
Ok(()) Ok(())
} else { } else {
Err(Error::unknown("Corpus minimization failed; unsat.")) Err(Error::unknown("Corpus minimization failed; unsat."))