diff --git a/afl/src/executors/inmemory.rs b/afl/src/executors/inmemory.rs index 3c624a918e..0a4006763b 100644 --- a/afl/src/executors/inmemory.rs +++ b/afl/src/executors/inmemory.rs @@ -26,7 +26,6 @@ impl Executor for InMemoryExecutor where I: Input + HasTargetBytes, { - #[inline] fn run_target(&mut self, input: &I) -> Result { let bytes = input.target_bytes(); diff --git a/afl/src/feedbacks/mod.rs b/afl/src/feedbacks/mod.rs index 8292bf89ec..b7d49ed8f5 100644 --- a/afl/src/feedbacks/mod.rs +++ b/afl/src/feedbacks/mod.rs @@ -59,7 +59,6 @@ impl Reducer for MaxReducer where T: Integer + Copy + 'static, { - #[inline] fn reduce(first: T, second: T) -> T { if first > second { @@ -81,7 +80,6 @@ impl Reducer for MinReducer where T: Integer + Copy + 'static, { - #[inline] fn reduce(first: T, second: T) -> T { if first < second { diff --git a/afl/src/inputs/bytes.rs b/afl/src/inputs/bytes.rs index a220b362a5..86cf60f731 100644 --- a/afl/src/inputs/bytes.rs +++ b/afl/src/inputs/bytes.rs @@ -23,15 +23,19 @@ impl Into>> for BytesInput { } impl HasBytesVec for BytesInput { + #[inline] fn bytes(&self) -> &[u8] { &self.bytes } + + #[inline] fn bytes_mut(&mut self) -> &mut Vec { &mut self.bytes } } impl HasTargetBytes for BytesInput { + #[inline] fn target_bytes(&self) -> TargetBytes { TargetBytes::Ref(&self.bytes) }