Diffstat (limited to 'tests/async.rs')
| -rw-r--r-- | tests/async.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/async.rs b/tests/async.rs index 2c446a1..13968ab 100644 --- a/tests/async.rs +++ b/tests/async.rs @@ -50,7 +50,7 @@ const _: () = { type Output = (); - fn walk<'a>(self, visitor: &'a mut Visitor<'ctx>) -> ControlFlowFor<'a, AsyncEffect> { + fn walk<'a>(self, visitor: &'a mut Visitor<'a, 'ctx>) -> ControlFlowFor<'a, AsyncEffect> { Box::pin(async { match self.0 { Data::Bool(value) => walk_bool(value, visitor), @@ -62,20 +62,20 @@ const _: () = { } }; -fn walk_bool(value: bool, visitor: &mut Visitor<'_>) { +fn walk_bool(value: bool, visitor: &mut Visitor<'_, '_>) { visitor .upcast_mut::<dyn Value<OwnedStatic<bool>>>() .unwrap() .visit(OwnedStatic(value)); } -async fn walk_vec(value: Vec<Data>, visitor: &mut Visitor<'_>) { +async fn walk_vec(value: Vec<Data>, visitor: &mut Visitor<'_, '_>) { struct Scope(VecDeque<Data>); impl<'ctx> SequenceScope<'ctx, AsyncEffect> for Scope { fn next<'a>( &'a mut self, - visitor: &'a mut Visitor<'ctx>, + visitor: &'a mut Visitor<'a, 'ctx>, ) -> ControlFlowFor<'a, AsyncEffect, Status> { Box::pin(async { if let Some(value) = self.0.pop_front() { @@ -106,7 +106,7 @@ impl<'ctx> Builder<'ctx> for JsonLike { type Value = String; - fn as_visitor(&mut self) -> &mut Visitor<'ctx> { + fn as_visitor(&mut self) -> &mut Visitor<'_, 'ctx> { self } |