File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ pub struct ArgumentList {
1010type ParameterDefs = ( Vec < ast:: Arg > , Vec < ast:: Arg > , Vec < ast:: Expr > ) ;
1111type ParameterDef = ( ast:: Arg , Option < ast:: Expr > ) ;
1212
13- pub fn validate_arguments (
14- arguments : ast:: Arguments
15- ) -> Result < ast:: Arguments , LexicalError > {
13+ pub fn validate_arguments ( arguments : ast:: Arguments ) -> Result < ast:: Arguments , LexicalError > {
1614 let mut all_args: Vec < & ast:: Located < ast:: ArgData > > = vec ! [ ] ;
1715
1816 all_args. extend ( arguments. posonlyargs . iter ( ) ) ;
@@ -28,8 +26,7 @@ pub fn validate_arguments(
2826 all_args. push ( a) ;
2927 }
3028
31- let mut all_arg_names =
32- FxHashSet :: with_hasher ( Default :: default ( ) ) ;
29+ let mut all_arg_names = FxHashSet :: with_hasher ( Default :: default ( ) ) ;
3330 for arg in all_args {
3431 let arg_name = & arg. node . arg ;
3532 if !all_arg_names. insert ( arg_name) {
You can’t perform that action at this time.
0 commit comments