@@ -200,8 +200,8 @@ pub trait Visitor<'ast>: Sized {
200
200
fn visit_param_bound ( & mut self , bounds : & ' ast GenericBound , _ctxt : BoundKind ) -> Self :: Result {
201
201
walk_param_bound ( self , bounds)
202
202
}
203
- fn visit_precise_capturing_arg ( & mut self , arg : & ' ast PreciseCapturingArg ) {
204
- walk_precise_capturing_arg ( self , arg) ;
203
+ fn visit_precise_capturing_arg ( & mut self , arg : & ' ast PreciseCapturingArg ) -> Self :: Result {
204
+ walk_precise_capturing_arg ( self , arg)
205
205
}
206
206
fn visit_poly_trait_ref ( & mut self , t : & ' ast PolyTraitRef ) -> Self :: Result {
207
207
walk_poly_trait_ref ( self , t)
@@ -730,14 +730,10 @@ pub fn walk_param_bound<'a, V: Visitor<'a>>(visitor: &mut V, bound: &'a GenericB
730
730
pub fn walk_precise_capturing_arg < ' a , V : Visitor < ' a > > (
731
731
visitor : & mut V ,
732
732
arg : & ' a PreciseCapturingArg ,
733
- ) {
733
+ ) -> V :: Result {
734
734
match arg {
735
- PreciseCapturingArg :: Lifetime ( lt) => {
736
- visitor. visit_lifetime ( lt, LifetimeCtxt :: GenericArg ) ;
737
- }
738
- PreciseCapturingArg :: Arg ( path, id) => {
739
- visitor. visit_path ( path, * id) ;
740
- }
735
+ PreciseCapturingArg :: Lifetime ( lt) => visitor. visit_lifetime ( lt, LifetimeCtxt :: GenericArg ) ,
736
+ PreciseCapturingArg :: Arg ( path, id) => visitor. visit_path ( path, * id) ,
741
737
}
742
738
}
743
739
0 commit comments