cargo fmt

This commit is contained in:
Dominik Maier 2020-11-15 03:23:10 +01:00
parent c3275bbc3f
commit 0cb5c33a29
9 changed files with 7 additions and 13 deletions

View File

@ -1,4 +1,3 @@
pub mod testcase;
pub use testcase::{Testcase, TestcaseMetadata};

View File

@ -1,4 +1,3 @@
use crate::inputs::Input;
use crate::AflError;
@ -202,7 +201,9 @@ where
/// Create a new Testcase instace given an input
pub fn new<T>(input: T) -> Self
where T: Into<I>{
where
T: Into<I>,
{
Testcase {
input: Some(input.into()),
filename: None,

View File

@ -199,15 +199,15 @@ use unix_signals as os_signals;
compile_error!("InMemoryExecutor not yet supported on this OS");
#[cfg(test)]
mod tests {
mod tests {
extern crate alloc;
use alloc::boxed::Box;
use crate::executors::inmemory::InMemoryExecutor;
use crate::executors::{Executor, ExitKind};
use crate::inputs::Input;
use crate::observers::Observer;
use crate::AflError;
use alloc::boxed::Box;
#[derive(Clone)]
struct NopInput {}
@ -233,7 +233,7 @@ compile_error!("InMemoryExecutor not yet supported on this OS");
#[cfg(feature = "std")]
fn test_harness_fn_nop(_executor: &dyn Executor<NopInput>, buf: &[u8]) -> ExitKind {
println!{"Fake exec with buf of len {}", buf.len()};
println! {"Fake exec with buf of len {}", buf.len()};
ExitKind::Ok
}

View File

@ -1,4 +1,3 @@
use alloc::borrow::ToOwned;
use alloc::rc::Rc;
use alloc::vec::Vec;

View File

@ -1,4 +1,3 @@
pub mod bytes;
pub use bytes::BytesInput;

View File

@ -1,4 +1,3 @@
pub mod scheduled;
pub use scheduled::ComposedByMutations;
pub use scheduled::DefaultScheduledMutator;

View File

@ -1,4 +1,3 @@
use crate::inputs::{HasBytesVec, Input};
use crate::mutators::Corpus;
use crate::mutators::Mutator;

View File

@ -1,4 +1,3 @@
pub mod mutational;
pub use mutational::DefaultMutationalStage;

View File

@ -1,4 +1,3 @@
use alloc::rc::Rc;
use core::cell::RefCell;
use core::marker::PhantomData;