a few inlines
This commit is contained in:
parent
ec6512d49c
commit
ffdaaa8fcc
@ -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();
|
||||
|
@ -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 {
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user