Skip to content

Commit 2d5e044

Browse files
committed
format code
1 parent 58ff3e8 commit 2d5e044

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/parser/src/function.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ pub struct ArgumentList {
1010
type ParameterDefs = (Vec<ast::Arg>, Vec<ast::Arg>, Vec<ast::Expr>);
1111
type 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) {

0 commit comments

Comments
 (0)