Skip to content

Commit

Permalink
Delete with_observers (AFLplusplus#2730)
Browse files Browse the repository at this point in the history
* delete with_observers

* import

* doc

* a

* fix markdown
  • Loading branch information
tokatoka authored Nov 26, 2024
1 parent 49d1b18 commit b3ca9a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
6 changes: 5 additions & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 1 addition & 13 deletions libafl/src/executors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b3ca9a7

Please sign in to comment.