From f8c6afbcba8f5962c9cc4d485159f41dc65eb8c6 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 10 Mar 2023 18:05:38 +0000 Subject: [PATCH] Replace unneeded field pattern with `..` --- src/asts/js.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asts/js.rs b/src/asts/js.rs index 396521a..e2b2583 100644 --- a/src/asts/js.rs +++ b/src/asts/js.rs @@ -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() {