Skip to content

Commit 8ef9938

Browse files
authored
Real fix for CalibrationStage (#3360)
1 parent 4596201 commit 8ef9938

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/libafl/src/stages/calibrate.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ impl Default for UnstableEntriesMetadata {
7979

8080
/// The calibration stage will measure the average exec time and the target's stability for this input.
8181
#[derive(Debug, Clone)]
82-
pub struct CalibrationStage<C, E, I, O, OT, S> {
82+
pub struct CalibrationStage<C, I, O, OT, S> {
8383
map_observer_handle: Handle<C>,
8484
map_name: Cow<'static, str>,
8585
name: Cow<'static, str>,
8686
stage_max: usize,
8787
/// If we should track stability
8888
track_stability: bool,
89-
phantom: PhantomData<(E, I, O, OT, S)>,
89+
phantom: PhantomData<(I, O, OT, S)>,
9090
}
9191

92-
impl<C, E, EM, I, O, OT, S, Z> Stage<E, EM, S, Z> for CalibrationStage<C, E, I, O, OT, S>
92+
impl<C, E, EM, I, O, OT, S, Z> Stage<E, EM, S, Z> for CalibrationStage<C, I, O, OT, S>
9393
where
9494
E: Executor<EM, I, S, Z> + HasObservers<Observers = OT>,
9595
EM: EventFirer<I, S>,
@@ -372,7 +372,7 @@ where
372372
}
373373
}
374374

375-
impl<C, E, I, O, OT, S> Restartable<S> for CalibrationStage<C, E, I, O, OT, S>
375+
impl<C, I, O, OT, S> Restartable<S> for CalibrationStage<C, I, O, OT, S>
376376
where
377377
S: HasMetadata + HasNamedMetadata + HasCurrentCorpusId,
378378
{
@@ -391,7 +391,7 @@ where
391391
}
392392
}
393393

394-
impl<C, E, I, O, OT, S> CalibrationStage<C, E, I, O, OT, S>
394+
impl<C, I, O, OT, S> CalibrationStage<C, I, O, OT, S>
395395
where
396396
C: AsRef<O>,
397397
O: MapObserver,
@@ -429,7 +429,7 @@ where
429429
}
430430
}
431431

432-
impl<C, E, I, O, OT, S> Named for CalibrationStage<C, E, I, O, OT, S> {
432+
impl<C, I, O, OT, S> Named for CalibrationStage<C, I, O, OT, S> {
433433
fn name(&self) -> &Cow<'static, str> {
434434
&self.name
435435
}

0 commit comments

Comments
 (0)