diff --git a/client/src/schedule/mutation/mod.rs b/client/src/schedule/mutation/mod.rs index c1ab8d5..05945a7 100644 --- a/client/src/schedule/mutation/mod.rs +++ b/client/src/schedule/mutation/mod.rs @@ -12,23 +12,25 @@ pub use self::{ }; use super::event::Event; +pub type BoxedMutator = Box; + #[derive(Default)] pub struct Mutators { - mutators: Vec>, + mutators: Vec, } impl Mutators { - pub fn new(mutators: Vec>) -> Self { + pub fn new(mutators: Vec) -> Self { Self { mutators } } - pub fn new_single(mutator: Box) -> Self { + pub fn new_single(mutator: BoxedMutator) -> Self { Self { mutators: vec![mutator], } } - pub fn push(&mut self, mutator: Box) { + pub fn push(&mut self, mutator: BoxedMutator) { self.mutators.push(mutator); }