Diffstat (limited to 'tests/common/protocol/recoverable.rs')
-rw-r--r--tests/common/protocol/recoverable.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/common/protocol/recoverable.rs b/tests/common/protocol/recoverable.rs
index 721deec..f423693 100644
--- a/tests/common/protocol/recoverable.rs
+++ b/tests/common/protocol/recoverable.rs
@@ -44,28 +44,28 @@ impl<'ctx, E: Environment + Send> Recoverable<'ctx, E> for MockRecoverableVisito
mock! {
pub RecoverableScopeVisitor<E: Environment> {
- pub fn new_walk<'a, 'b, 'ctx>(&'a mut self, visitor: DynVisitor<'b, 'ctx, E>) -> Status;
+ pub fn new_walk<'a, 'b, 'lt, 'ctx>(&'a mut self, visitor: DynVisitor<'b, 'lt, 'ctx, E>) -> Status;
}
}
forward_send_sync!({} {} {E: (Environment + Send)} MockRecoverableScopeVisitor<E>);
impl<'ctx, E: Environment + Send> RecoverableScope<'ctx, E> for MockRecoverableScopeVisitor<E> {
- fn new_walk<'a: 'c, 'b: 'c, 'c>(
+ fn new_walk<'a: 'c, 'b: 'c, 'd: 'c, 'c>(
&'a mut self,
- visitor: DynVisitor<'b, 'ctx, E>,
+ visitor: DynVisitor<'b, 'd, 'ctx, E>,
) -> Canonical<'c, Status, E> {
E::value(self.new_walk(visitor)).cast()
}
}
-pub trait RecoverableVisitorExt<'ctx> {
+pub trait RecoverableVisitorExt<'lt, 'ctx> {
fn visit_recoverable_and_done<'a>(&'a mut self, scope: DynRecoverableScope<'a, 'ctx, BlockingSpin>);
}
-impl<'ctx, T> RecoverableVisitorExt<'ctx> for T
+impl<'lt, 'ctx, T> RecoverableVisitorExt<'lt, 'ctx> for T
where
- T: AsVisitor<'ctx, BlockingSpin>,
+ T: AsVisitor<'lt, 'ctx, BlockingSpin>,
{
fn visit_recoverable_and_done<'a>(
&'a mut self,