code format

This commit is contained in:
Dominik Maier 2020-11-14 09:40:06 +01:00
parent 194ac619be
commit 73e95331f9
4 changed files with 3 additions and 7 deletions

View File

@ -123,7 +123,6 @@ where
}
}
/// Impl of a testcase
impl<I> Testcase<I>
where
@ -191,5 +190,4 @@ where
metadatas: HashMap::default(),
}
}
}

View File

@ -78,7 +78,6 @@ where
stages: vec![],
}
}
}
#[cfg(test)]
@ -109,7 +108,8 @@ mod tests {
let mut corpus = InMemoryCorpus::<BytesInput, _>::new(&rand);
let testcase = Testcase::new(BytesInput::new(vec![0; 4])).into();
corpus.add(testcase);
let executor: Rc<RefCell<InMemoryExecutor<BytesInput>>> = InMemoryExecutor::new(harness).into();
let executor: Rc<RefCell<InMemoryExecutor<BytesInput>>> =
InMemoryExecutor::new(harness).into();
let mut engine = DefaultEngine::new();
let mut mutator = DefaultScheduledMutator::new(&rand);
mutator.add_mutation(mutation_bitflip);

View File

@ -98,7 +98,6 @@ where
harness: harness_fn,
}
}
}
#[cfg(unix)]

View File

@ -2,8 +2,8 @@ extern crate alloc;
use core::convert::From;
use core::cell::RefCell;
use alloc::rc::Rc;
use core::cell::RefCell;
use crate::inputs::{HasBytesVec, HasTargetBytes, Input};
use crate::AflError;
@ -31,7 +31,6 @@ impl Into<Rc<RefCell<Self>>> for BytesInput {
}
}
impl HasBytesVec for BytesInput {
fn bytes(&self) -> &Vec<u8> {
&self.bytes