Delete with_observers (#2730)

* delete with_observers

* import

* doc

* a

* fix markdown
This commit is contained in:
Dongjia "toka" Zhang 2024-11-26 17:54:21 +01:00 committed by GitHub
parent 49d1b18010
commit b3ca9a7c06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 14 deletions

View File

@ -1 +1,5 @@
# 0.14.0 -> 0.14.1
# Pre 0.9 -> 0.9
- [Migrating from LibAFL <0.9 to 0.9](https://aflplus.plus/libafl-book/design/migration-0.9.html)
# 0.14.0 -> 0.14.1
- Removed `with_observers` from `Executor` trait.

View File

@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize};
pub use shadow::ShadowExecutor;
pub use with_observers::WithObservers;
use crate::{observers::ObserversTuple, state::UsesState, Error};
use crate::{state::UsesState, Error};
pub mod combined;
#[cfg(all(feature = "std", any(unix, doc)))]
@ -130,18 +130,6 @@ where
mgr: &mut EM,
input: &Self::Input,
) -> Result<ExitKind, Error>;
/// Wraps this Executor with the given [`ObserversTuple`] to implement [`HasObservers`].
///
/// If the executor already implements [`HasObservers`], then the original implementation will be overshadowed by
/// the implementation of this wrapper.
fn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT>
where
Self: Sized,
OT: ObserversTuple<Self::Input, Self::State>,
{
WithObservers::new(self, observers)
}
}
/// A trait that allows to get/set an `Executor`'s timeout thresold