From 73e95331f967d62c62e1c23b1d5d6dbbef8400d2 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Sat, 14 Nov 2020 09:40:06 +0100 Subject: [PATCH] code format --- src/corpus/testcase.rs | 2 -- src/engines/mod.rs | 4 ++-- src/executors/inmemory.rs | 1 - src/inputs/bytes.rs | 3 +-- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/corpus/testcase.rs b/src/corpus/testcase.rs index 5a13f3b329..71fbcdcaed 100644 --- a/src/corpus/testcase.rs +++ b/src/corpus/testcase.rs @@ -123,7 +123,6 @@ where } } - /// Impl of a testcase impl Testcase where @@ -191,5 +190,4 @@ where metadatas: HashMap::default(), } } - } diff --git a/src/engines/mod.rs b/src/engines/mod.rs index 6efc24f3fb..ade29f6392 100644 --- a/src/engines/mod.rs +++ b/src/engines/mod.rs @@ -78,7 +78,6 @@ where stages: vec![], } } - } #[cfg(test)] @@ -109,7 +108,8 @@ mod tests { let mut corpus = InMemoryCorpus::::new(&rand); let testcase = Testcase::new(BytesInput::new(vec![0; 4])).into(); corpus.add(testcase); - let executor: Rc>> = InMemoryExecutor::new(harness).into(); + let executor: Rc>> = + InMemoryExecutor::new(harness).into(); let mut engine = DefaultEngine::new(); let mut mutator = DefaultScheduledMutator::new(&rand); mutator.add_mutation(mutation_bitflip); diff --git a/src/executors/inmemory.rs b/src/executors/inmemory.rs index 4e99e08ff1..603c901f02 100644 --- a/src/executors/inmemory.rs +++ b/src/executors/inmemory.rs @@ -98,7 +98,6 @@ where harness: harness_fn, } } - } #[cfg(unix)] diff --git a/src/inputs/bytes.rs b/src/inputs/bytes.rs index a2c288c255..4150a55b50 100644 --- a/src/inputs/bytes.rs +++ b/src/inputs/bytes.rs @@ -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>> for BytesInput { } } - impl HasBytesVec for BytesInput { fn bytes(&self) -> &Vec { &self.bytes