removed ref to Executor for now

This commit is contained in:
Dominik Maier 2020-10-28 15:25:17 +01:00
parent b553fdc20f
commit 90a16762ff
2 changed files with 3 additions and 4 deletions

View File

@ -3,6 +3,7 @@ use crate::inputs::Input;
use crate::observers::Observer;
use std::ptr;
use std::iter;
pub enum ExitKind {
Ok,
@ -73,9 +74,7 @@ impl Executor for InMemoryExecutor {
}
fn post_exec_observers(&mut self) -> Result<(), AflError> {
for observer in &mut self.base.observers {
observer.post_exec(self)?;
}
self.base.observers.iter_mut().map(|x| x.post_exec());
Ok(())
}

View File

@ -9,7 +9,7 @@ pub trait Observer {
fn reset(&mut self) -> Result<(), AflError>;
fn post_exec(&mut self, executor: &mut dyn Executor) -> Result<(), AflError> {
fn post_exec(&mut self) -> Result<(), AflError> {
Ok(())
}