Diffstat (limited to 'tests/common/walker.rs')
| -rw-r--r-- | tests/common/walker.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/common/walker.rs b/tests/common/walker.rs index b1064f6..e4e879e 100644 --- a/tests/common/walker.rs +++ b/tests/common/walker.rs @@ -1,7 +1,7 @@ use mockall::mock; use treaty::{ any::{indirect, AnyTrait, AnyTraitObject, TypeNameId}, - effect::{Effect, Future}, + effect::{Effect, Effective, ErasedEffective}, protocol::DynVisitor, Builder, BuilderTypes, Walker, WalkerTypes, }; @@ -24,14 +24,14 @@ impl<Output: Send + Sync, Error: Send + Sync> WalkerTypes for MockWalker<Output, impl<'ctx, Output: Send + Sync, Error: Send + Sync, E: Effect> Walker<'ctx, E> for MockWalker<Output, Error> { - fn walk<'a>( + fn walk<'a: 'c, 'c>( self, visitor: DynVisitor<'a, 'ctx>, - ) -> Future<'a, Result<Self::Output, Self::Error>, E> + ) -> ErasedEffective<'c, Result<Self::Output, Self::Error>, E> where - Self: 'a, + Self: 'c, { - E::ready(self.walk(visitor)) + E::ready(self.walk(visitor)).into_erased() } } |