Skip to content

Commit d9d0e5d

Browse files
committed
syntax: cleanup parse_fn_decl.
1 parent 347deac commit d9d0e5d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/libsyntax/parse/parser/item.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,14 +1274,11 @@ impl<'a> Parser<'a> {
12741274
Ok((id, generics))
12751275
}
12761276

1277-
/// Parses the argument list and result type of a function declaration.
1277+
/// Parses the parameter list and result type of a function declaration.
12781278
fn parse_fn_decl(&mut self, allow_c_variadic: bool) -> PResult<'a, P<FnDecl>> {
1279-
let args = self.parse_fn_params(true, allow_c_variadic)?;
1280-
let ret_ty = self.parse_ret_ty(true)?;
1281-
12821279
Ok(P(FnDecl {
1283-
inputs: args,
1284-
output: ret_ty,
1280+
inputs: self.parse_fn_params(true, allow_c_variadic)?,
1281+
output: self.parse_ret_ty(true)?,
12851282
}))
12861283
}
12871284

0 commit comments

Comments
 (0)