Open Wybxc opened 8 months ago
BoxedStrategy::Tree does not implement the Clone trait, which means that any strategy relying on it cannot be verified using check_strategy_sanity.
BoxedStrategy::Tree
Clone
check_strategy_sanity
BoxedStrategy::Tree is represented as a Box<dyn Trait>. To enable it to be cloned, you can use dyn-clone:
Box<dyn Trait>
trait Trait {} trait CloneTrait: dyn_clone::DynClone + Trait {} dyn_clone::clone_trait_object!(CloneTrait); impl<T> CloneTrait for T where T: Trait + Clone {} // Now, `Box<dyn CloneTrait>` can be cloned.
Perhaps it would be beneficial to create a new variant of BoxedStrategy where the value tree is guaranteed to implement Clone.
BoxedStrategy
Thanks for reaching out and sorry for the delay. I'll give this a look -- currently triaging whats in our backlog
BoxedStrategy::Tree
does not implement theClone
trait, which means that any strategy relying on it cannot be verified usingcheck_strategy_sanity
.BoxedStrategy::Tree
is represented as aBox<dyn Trait>
. To enable it to be cloned, you can use dyn-clone:Perhaps it would be beneficial to create a new variant of
BoxedStrategy
where the value tree is guaranteed to implementClone
.