File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,14 @@ impl<'a> AstValidator<'a> {
158
158
err. emit ( ) ;
159
159
}
160
160
161
- fn check_decl_no_pat < F : FnMut ( Span , bool ) > ( decl : & FnDecl , mut report_err : F ) {
162
- for arg in & decl. inputs {
163
- match arg . pat . kind {
161
+ fn check_decl_no_pat ( decl : & FnDecl , mut report_err : impl FnMut ( Span , bool ) ) {
162
+ for Param { pat , .. } in & decl. inputs {
163
+ match pat. kind {
164
164
PatKind :: Ident ( BindingMode :: ByValue ( Mutability :: Immutable ) , _, None ) |
165
165
PatKind :: Wild => { }
166
166
PatKind :: Ident ( BindingMode :: ByValue ( Mutability :: Mutable ) , _, None ) =>
167
- report_err ( arg . pat . span , true ) ,
168
- _ => report_err ( arg . pat . span , false ) ,
167
+ report_err ( pat. span , true ) ,
168
+ _ => report_err ( pat. span , false ) ,
169
169
}
170
170
}
171
171
}
You can’t perform that action at this time.
0 commit comments