fix generics for ShadowExecutor

This commit is contained in:
Andrea Fioraldi 2021-06-09 14:34:38 +02:00
parent 2328ac252b
commit 8fa654dd61
3 changed files with 8 additions and 3 deletions

View File

@ -15,7 +15,12 @@ pub struct CombinedExecutor<A, B> {
impl<A, B> CombinedExecutor<A, B> { impl<A, B> CombinedExecutor<A, B> {
/// Create a new `CombinedExecutor`, wrapping the given `executor`s. /// Create a new `CombinedExecutor`, wrapping the given `executor`s.
pub fn new<EM, I, S, Z>(primary: A, secondary: B) -> Self { pub fn new<EM, I, S, Z>(primary: A, secondary: B) -> Self
where
A: Executor<EM, I, S, Z>,
B: Executor<EM, I, S, Z>,
I: Input,
{
Self { primary, secondary } Self { primary, secondary }
} }

View File

@ -40,7 +40,7 @@ where
SOT: ObserversTuple, SOT: ObserversTuple,
{ {
/// Create a new `ShadowExecutor`, wrapping the given `executor`. /// Create a new `ShadowExecutor`, wrapping the given `executor`.
pub fn new<EM, I, S, Z>(executor: E, shadow_observers: SOT) -> Self { pub fn new(executor: E, shadow_observers: SOT) -> Self {
Self { Self {
executor, executor,
shadow_observers, shadow_observers,

View File

@ -9,7 +9,7 @@ pub mod mutational;
pub use mutational::{MutationalStage, StdMutationalStage}; pub use mutational::{MutationalStage, StdMutationalStage};
pub mod tracing; pub mod tracing;
pub use tracing::TracingStage; pub use tracing::{ShadowTracingStage, TracingStage};
//pub mod power; //pub mod power;
//pub use power::PowerMutationalStage; //pub use power::PowerMutationalStage;