clippy fixes
This commit is contained in:
parent
7750707fee
commit
ff589d9a89
@ -26,7 +26,6 @@ pub use libc::{c_void, siginfo_t};
|
||||
/// All signals on this system, as `enum`.
|
||||
#[derive(IntoPrimitive, TryFromPrimitive, Clone, Copy)]
|
||||
#[repr(i32)]
|
||||
#[allow(clippy::pub_enum_variant_names)]
|
||||
pub enum Signal {
|
||||
/// `SIGABRT` signal id
|
||||
SigAbort = SIGABRT,
|
||||
|
@ -337,7 +337,7 @@ where
|
||||
#[cfg(feature = "introspection")]
|
||||
let is_solution = self
|
||||
.objective_mut()
|
||||
.is_interesting_introspection(state, manager, &input, observers, &exit_kind)?;
|
||||
.is_interesting_introspection(state, manager, &input, observers, exit_kind)?;
|
||||
|
||||
if is_solution {
|
||||
res = ExecuteInputResult::Solution;
|
||||
@ -350,7 +350,7 @@ where
|
||||
#[cfg(feature = "introspection")]
|
||||
let is_corpus = self
|
||||
.feedback_mut()
|
||||
.is_interesting_introspection(state, manager, &input, observers, &exit_kind)?;
|
||||
.is_interesting_introspection(state, manager, &input, observers, exit_kind)?;
|
||||
|
||||
if is_corpus {
|
||||
res = ExecuteInputResult::Corpus;
|
||||
|
@ -204,6 +204,7 @@ where
|
||||
|
||||
/// Compute the parameter `μ` used in the COE schedule.
|
||||
#[inline]
|
||||
#[allow(clippy::unused_self)]
|
||||
pub fn fuzz_mu(&self, state: &S, psmeta: &PowerScheduleMetadata) -> Result<f64, Error> {
|
||||
let corpus = state.corpus();
|
||||
let mut n_paths = 0;
|
||||
|
@ -2,7 +2,6 @@ use num_enum::{IntoPrimitive, TryFromPrimitive};
|
||||
|
||||
#[derive(IntoPrimitive, TryFromPrimitive, Clone, Copy)]
|
||||
#[repr(i32)]
|
||||
#[allow(clippy::pub_enum_variant_names)]
|
||||
pub enum Amd64Regs {
|
||||
Rax = 0,
|
||||
Rbx = 1,
|
||||
|
@ -2,7 +2,6 @@ use num_enum::{IntoPrimitive, TryFromPrimitive};
|
||||
|
||||
#[derive(IntoPrimitive, TryFromPrimitive, Clone, Copy)]
|
||||
#[repr(i32)]
|
||||
#[allow(clippy::pub_enum_variant_names)]
|
||||
pub enum X86Regs {
|
||||
Eax = 0,
|
||||
Ebx = 1,
|
||||
|
@ -66,10 +66,12 @@ where
|
||||
harness: Option<H>,
|
||||
}
|
||||
|
||||
#[allow(clippy::similar_names)]
|
||||
impl<'a, H> InMemoryBytesCoverageSugar<'a, H>
|
||||
where
|
||||
H: FnMut(&[u8]),
|
||||
{
|
||||
#[allow(clippy::too_many_lines)]
|
||||
pub fn run(&mut self) {
|
||||
let conf = self
|
||||
.configuration
|
||||
@ -192,7 +194,7 @@ where
|
||||
println!("Loading from {:?}", &self.input_dirs);
|
||||
// Load from disk
|
||||
state
|
||||
.load_initial_inputs(&mut fuzzer, &mut executor, &mut mgr, &self.input_dirs)
|
||||
.load_initial_inputs(&mut fuzzer, &mut executor, &mut mgr, self.input_dirs)
|
||||
.unwrap_or_else(|_| {
|
||||
panic!("Failed to load initial corpus at {:?}", &self.input_dirs);
|
||||
});
|
||||
@ -228,7 +230,7 @@ where
|
||||
.configuration(conf)
|
||||
.stats(stats)
|
||||
.run_client(&mut run_client)
|
||||
.cores(&self.cores)
|
||||
.cores(self.cores)
|
||||
.broker_port(self.broker_port)
|
||||
.remote_broker_addr(self.remote_broker_addr);
|
||||
#[cfg(unix)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user