Diffstat (limited to 'tests/common/protocol/hint.rs')
| -rw-r--r-- | tests/common/protocol/hint.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/common/protocol/hint.rs b/tests/common/protocol/hint.rs index ec94277..37606bc 100644 --- a/tests/common/protocol/hint.rs +++ b/tests/common/protocol/hint.rs @@ -14,7 +14,7 @@ pub type KnownFactory<P> = mock! { pub HintWalker<P: HintMeta> { - pub fn hint<'a, 'ctx>(&'a mut self, visitor: DynVisitor<'a, 'ctx>, hint: MetaHint<'a, 'ctx, P>) -> Flow; + pub fn hint<'a, 'b, 'c, 'ctx>(&'a mut self, visitor: DynVisitor<'b, 'ctx>, hint: MetaHint<'c, 'ctx, P>) -> Flow; pub fn known(&self) -> KnownFactory<P>; } @@ -28,11 +28,14 @@ any_trait! { } impl<'ctx, P: HintMeta> Hint<'ctx, P> for MockHintWalker<P> { - fn hint<'a>( - &'a mut self, - visitor: DynVisitor<'a, 'ctx>, - hint: MetaHint<'a, 'ctx, P>, - ) -> ErasedEffective<'a, Flow, P::Effect> { + fn hint<'this, 'visitor, 'hint, 'e>( + &'this mut self, + visitor: DynVisitor<'visitor, 'ctx>, + hint: MetaHint<'hint, 'ctx, P>, + ) -> ErasedEffective<'e, Flow, P::Effect> + where + 'ctx: 'this + 'visitor + 'hint + 'e, + { P::Effect::ready(self.hint(visitor, hint)) } |