From ab793303fbb9ae8f6fdb0cc4759612f01ef9ae29 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Wed, 3 Feb 2021 04:23:00 +0100 Subject: [PATCH] more docs, inline --- afl/src/executors/inmemory.rs | 2 ++ afl/src/executors/mod.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/afl/src/executors/inmemory.rs b/afl/src/executors/inmemory.rs index d72c4612d5..efcd3276af 100644 --- a/afl/src/executors/inmemory.rs +++ b/afl/src/executors/inmemory.rs @@ -45,6 +45,7 @@ where I: Input + HasTargetBytes, OT: ObserversTuple, { + #[inline] fn pre_exec( &mut self, state: &State, @@ -65,6 +66,7 @@ where Ok(()) } + #[inline] fn post_exec( &mut self, _state: &State, diff --git a/afl/src/executors/mod.rs b/afl/src/executors/mod.rs index 52256e7be2..ca7ff4970b 100644 --- a/afl/src/executors/mod.rs +++ b/afl/src/executors/mod.rs @@ -78,6 +78,8 @@ pub trait Executor: Named where I: Input, { + #[inline] + /// Called right before exexution starts fn pre_exec( &mut self, _state: &State, @@ -94,6 +96,8 @@ where Ok(()) } + #[inline] + /// Called right after execution finished. fn post_exec( &mut self, _state: &State,