fix some types

This commit is contained in:
Alwin Berger 2022-02-13 20:20:09 +01:00
parent c3f398a315
commit be1ead84f4

View File

@ -212,7 +212,7 @@ where
{ {
/// Creates a new [`HitFeedback`] /// Creates a new [`HitFeedback`]
#[must_use] #[must_use]
pub fn new(target_map: HashMap<(u64,u64),T>, target_msd: f64, _map_observer: &O) -> Self { pub fn new(target_map: HashMap<(u64,u64),T>, target_msd: f64, _map_observer: &QemuHashMapObserver<O, T>) -> Self {
Self {target_map: target_map, target_msd: target_msd, phantom: PhantomData} Self {target_map: target_map, target_msd: target_msd, phantom: PhantomData}
} }
} }
@ -355,7 +355,7 @@ where
{ {
/// Creates a new [`HitImprovingFeedback`] /// Creates a new [`HitImprovingFeedback`]
#[must_use] #[must_use]
pub fn new(target_map: HashMap<(u64,u64),T>, _map_observer: &O) -> Self { pub fn new(target_map: HashMap<(u64,u64),T>, _map_observer: &QemuHashMapObserver<O, T>) -> Self {
Self {target_map: target_map, best_msd: f64::MAX, phantom: PhantomData} Self {target_map: target_map, best_msd: f64::MAX, phantom: PhantomData}
} }
} }
@ -422,10 +422,10 @@ where
{ {
/// Creates a new [`HitFeedback`] /// Creates a new [`HitFeedback`]
#[must_use] #[must_use]
pub fn new(_map_observer: &O) -> Self { pub fn new(_map_observer: &QemuHashMapObserver<O, T>) -> Self {
Self {dumpfile: None, phantom: PhantomData} Self {dumpfile: None, phantom: PhantomData}
} }
pub fn with_dump(dumpfile: Option<PathBuf>,_map_observer: &O) -> Self { pub fn with_dump(dumpfile: Option<PathBuf>,_map_observer: &QemuHashMapObserver<O, T>) -> Self {
Self {dumpfile: dumpfile, phantom: PhantomData} Self {dumpfile: dumpfile, phantom: PhantomData}
} }
} }