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