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

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

Replace unneeded field pattern with `..`
This commit is contained in:
azur 2023-03-11 01:05:52 +07:00 committed by GitHub
commit 04c663fffe

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() {