clippy fixes

This commit is contained in:
Dominik Maier 2021-08-03 12:51:20 +02:00
parent 7750707fee
commit ff589d9a89
6 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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;

View File

@ -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,

View File

@ -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,

View File

@ -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)]