code format
This commit is contained in:
parent
194ac619be
commit
73e95331f9
@ -123,7 +123,6 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Impl of a testcase
|
||||
impl<I> Testcase<I>
|
||||
where
|
||||
@ -191,5 +190,4 @@ where
|
||||
metadatas: HashMap::default(),
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -98,7 +98,6 @@ where
|
||||
harness: harness_fn,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user