Replace unneeded field pattern with `..`

pull/5/head
deepsource-autofix[bot] 2023-03-10 18:05:38 +00:00 committed by GitHub
parent e6b31b39b0
commit f8c6afbcba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ impl Display for JSStmt {
fn fmt(&self, f: &mut Formatter) -> FmtResult {
match self {
JSStmt::Expr(e) => write!(f, "{}", e),
JSStmt::Func { name, args, ret: _, body } => {
JSStmt::Func { name, args, body, .. } => {
// const name = (args) => body;
write!(f, "const {} = (", name)?;
for (i, name) in args.iter().enumerate() {