Diffstat (limited to 'tests/common/protocol/hint.rs')
| -rw-r--r-- | tests/common/protocol/hint.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/common/protocol/hint.rs b/tests/common/protocol/hint.rs index 07c7c41..5809380 100644 --- a/tests/common/protocol/hint.rs +++ b/tests/common/protocol/hint.rs @@ -1,7 +1,7 @@ use mockall::mock; use treaty::{ any::{any_trait, TypeName}, - effect::{Effect, Future}, + effect::{Effect, Effective, ErasedEffective}, protocol::{ walker::hint::{Hint, HintMeta, HintProto, MetaHint, MetaKnown}, DynVisitor, @@ -32,14 +32,14 @@ impl<'ctx, P: HintMeta> Hint<'ctx, P> for MockHintWalker<P> { &'a mut self, visitor: DynVisitor<'a, 'ctx>, hint: MetaHint<'a, 'ctx, P>, - ) -> Future<'a, Flow, P::Effect> { - P::Effect::ready(self.hint(visitor, hint)) + ) -> ErasedEffective<'a, Flow, P::Effect> { + P::Effect::ready(self.hint(visitor, hint)).into_erased() } fn known<'a>( &'a mut self, hint: &'a MetaHint<'a, 'ctx, P>, - ) -> Future<'a, Result<MetaKnown<'a, 'ctx, P>, ()>, P::Effect> { - P::Effect::ready(Self::known(self)(&(), hint)) + ) -> ErasedEffective<'a, Result<MetaKnown<'a, 'ctx, P>, ()>, P::Effect> { + P::Effect::ready(Self::known(self)(&(), hint)).into_erased() } } |