1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00

Replace unneeded field pattern with ..

This commit is contained in:
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

View file

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