@@ -95,12 +95,9 @@ impl MostNDiversePool {
9595 if let Some ( worst_input) = self . worst_input_idx . map (
9696 #[ no_coverage]
9797 |idx| & self . inputs [ idx] ,
98- ) {
99- if ( * nbr_new_counters > worst_input. nbr_unique_counters )
100- || ( * nbr_new_counters == worst_input. nbr_unique_counters && worst_input. cplx > input_complexity)
101- {
102- return true ;
103- }
98+ ) && ( ( * nbr_new_counters > worst_input. nbr_unique_counters ) || ( * nbr_new_counters == worst_input. nbr_unique_counters && worst_input. cplx > input_complexity) )
99+ {
100+ return true ;
104101 }
105102
106103 let mut common_unique_counters = FixedBitSet :: with_capacity ( counters. len ( ) ) ;
@@ -180,19 +177,16 @@ where
180177 if let Some ( worst_input) = self . worst_input_idx . map (
181178 #[ no_coverage]
182179 |idx| & mut self . inputs [ idx] ,
183- ) {
184- if ( nbr_new_counters > worst_input. nbr_unique_counters )
185- || ( nbr_new_counters == worst_input. nbr_unique_counters && worst_input. cplx > complexity)
186- {
187- let worst_input_data = worst_input. pool_idx ;
188- * worst_input = new_input;
189- self . recompute_state_from_inputs_vec ( ) ;
190- return vec ! [ CorpusDelta {
191- path: PathBuf :: new( ) . join( & self . name) ,
192- add: true ,
193- remove: vec![ worst_input_data] ,
194- } ] ;
195- }
180+ ) && ( ( nbr_new_counters > worst_input. nbr_unique_counters )
181+ || ( nbr_new_counters == worst_input. nbr_unique_counters && worst_input. cplx > complexity) ) {
182+ let worst_input_data = worst_input. pool_idx ;
183+ * worst_input = new_input;
184+ self . recompute_state_from_inputs_vec ( ) ;
185+ return vec ! [ CorpusDelta {
186+ path: PathBuf :: new( ) . join( & self . name) ,
187+ add: true ,
188+ remove: vec![ worst_input_data] ,
189+ } ] ;
196190 }
197191
198192 let mut common_unique_counters = FixedBitSet :: with_capacity ( counters. len ( ) ) ;
0 commit comments