StdMOptMutator:🆕 remove unused type parameter (#2695)
`I` is unused in `::new` and thus requires callers to explicitly specify any type as it can't be determined by type inference. Clippy's `extra_unused_type_parameters` should pick this up, but is tuned a bit too conservative in order to avoid false positives AFAICT.
This commit is contained in:
parent
b9cfcf0771
commit
8f320d4314
@ -307,7 +307,7 @@ fn fuzz(
|
||||
let i2s = StdMutationalStage::new(StdScheduledMutator::new(tuple_list!(I2SRandReplace::new())));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -310,7 +310,7 @@ fn fuzz(
|
||||
let i2s = StdMutationalStage::new(StdScheduledMutator::new(tuple_list!(I2SRandReplace::new())));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -263,7 +263,7 @@ impl<M: Monitor> Instance<'_, M> {
|
||||
)));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -291,7 +291,7 @@ fn fuzz(
|
||||
println!("Let's fuzz :)");
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -293,7 +293,7 @@ fn fuzz(
|
||||
println!("Let's fuzz :)");
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -307,7 +307,7 @@ fn fuzz(
|
||||
let i2s = StdMutationalStage::new(StdScheduledMutator::new(tuple_list!(I2SRandReplace::new())));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -300,7 +300,7 @@ fn fuzz(
|
||||
let i2s = StdMutationalStage::new(StdScheduledMutator::new(tuple_list!(I2SRandReplace::new())));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -310,7 +310,7 @@ fn fuzz(
|
||||
let i2s = StdMutationalStage::new(StdScheduledMutator::new(tuple_list!(I2SRandReplace::new())));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -367,7 +367,7 @@ fn fuzz_binary(
|
||||
let i2s = StdMutationalStage::new(StdScheduledMutator::new(tuple_list!(I2SRandReplace::new())));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
@ -582,7 +582,7 @@ fn fuzz_text(
|
||||
let i2s = StdMutationalStage::new(StdScheduledMutator::new(tuple_list!(I2SRandReplace::new())));
|
||||
|
||||
// Setup a MOPT mutator
|
||||
let mutator = StdMOptMutator::new::<BytesInput, _>(
|
||||
let mutator = StdMOptMutator::new(
|
||||
&mut state,
|
||||
havoc_mutations().merge(tokens_mutations()),
|
||||
7,
|
||||
|
@ -497,7 +497,7 @@ where
|
||||
|
||||
impl<MT> StdMOptMutator<MT> {
|
||||
/// Create a new [`StdMOptMutator`].
|
||||
pub fn new<I, S>(
|
||||
pub fn new<S>(
|
||||
state: &mut S,
|
||||
mutations: MT,
|
||||
max_stack_pow: usize,
|
||||
|
Loading…
x
Reference in New Issue
Block a user