Merge pull request #5 from azur1s/deepsource-fix-9921241a

Replace unneeded field pattern with `..`
pull/6/head
azur 2023-03-11 01:05:52 +07:00 committed by GitHub
commit 8c3193bf2b
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() {