fmt, clippy fixes

This commit is contained in:
Dominik Maier 2021-06-10 13:39:44 +02:00
parent 0c353daee6
commit c4dd0b25b8
3 changed files with 3 additions and 4 deletions

View File

@ -21,7 +21,7 @@ use libafl::{
}, },
executors::{ executors::{
inprocess::InProcessExecutor, timeout::TimeoutExecutor, Executor, ExitKind, inprocess::InProcessExecutor, timeout::TimeoutExecutor, Executor, ExitKind,
HasExecHooksTuple, HasObservers, HasObserversHooks, ShadowExecutor HasExecHooksTuple, HasObservers, HasObserversHooks, ShadowExecutor,
}, },
feedback_or, feedback_or,
feedbacks::{CrashFeedback, MapFeedbackState, MaxMapFeedback, TimeFeedback, TimeoutFeedback}, feedbacks::{CrashFeedback, MapFeedbackState, MaxMapFeedback, TimeFeedback, TimeoutFeedback},
@ -415,7 +415,6 @@ unsafe fn fuzz(
} }
if frida_options.cmplog_enabled() { if frida_options.cmplog_enabled() {
// Create an observation channel using cmplog map // Create an observation channel using cmplog map
let cmplog_observer = CmpLogObserver::new("cmplog", &mut CMPLOG_MAP, true); let cmplog_observer = CmpLogObserver::new("cmplog", &mut CMPLOG_MAP, true);

View File

@ -295,7 +295,7 @@ where
stats: None, stats: None,
sender, sender,
simple_event_mgr: SimpleEventManager::new(stats), simple_event_mgr: SimpleEventManager::new(stats),
shmem_provider: shmem_provider, shmem_provider,
_phantom: PhantomData {}, _phantom: PhantomData {},
} }
} }

View File

@ -165,7 +165,7 @@ impl From<ParseIntError> for Error {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::{ use crate::{
bolts::{rands::StdRand, shmem::StdShMemProvider, tuples::tuple_list}, bolts::{rands::StdRand, tuples::tuple_list},
corpus::{Corpus, InMemoryCorpus, RandCorpusScheduler, Testcase}, corpus::{Corpus, InMemoryCorpus, RandCorpusScheduler, Testcase},
executors::{ExitKind, InProcessExecutor}, executors::{ExitKind, InProcessExecutor},
inputs::BytesInput, inputs::BytesInput,