Fix incrementing found_objective(#2139)

This commit is contained in:
Dongjia "toka" Zhang 2024-05-03 23:30:14 +02:00 committed by GitHub
parent 382673b173
commit 41ff7438eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,7 +322,7 @@ where
/// Adds one objectives to the `objectives_found` counter. Mostly called from crash handler or executor.
pub fn found_objective(&mut self) {
let _ = self.objectives_found.saturating_add(1);
self.objectives_found = self.objectives_found.saturating_add(1);
}
}