a few inlines

This commit is contained in:
Dominik Maier 2020-12-11 08:00:30 +01:00
parent ec6512d49c
commit ffdaaa8fcc
3 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,6 @@ impl<I> Executor<I> for InMemoryExecutor<I>
where
I: Input + HasTargetBytes,
{
#[inline]
fn run_target(&mut self, input: &I) -> Result<ExitKind, AflError> {
let bytes = input.target_bytes();

View File

@ -59,7 +59,6 @@ impl<T> Reducer<T> for MaxReducer<T>
where
T: Integer + Copy + 'static,
{
#[inline]
fn reduce(first: T, second: T) -> T {
if first > second {
@ -81,7 +80,6 @@ impl<T> Reducer<T> for MinReducer<T>
where
T: Integer + Copy + 'static,
{
#[inline]
fn reduce(first: T, second: T) -> T {
if first < second {

View File

@ -23,15 +23,19 @@ impl Into<Rc<RefCell<Self>>> for BytesInput {
}
impl HasBytesVec for BytesInput {
#[inline]
fn bytes(&self) -> &[u8] {
&self.bytes
}
#[inline]
fn bytes_mut(&mut self) -> &mut Vec<u8> {
&mut self.bytes
}
}
impl HasTargetBytes for BytesInput {
#[inline]
fn target_bytes(&self) -> TargetBytes {
TargetBytes::Ref(&self.bytes)
}