mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
Compare commits
3 commits
666e0b048f
...
954cb0be06
Author | SHA1 | Date | |
---|---|---|---|
954cb0be06 | |||
04c663fffe | |||
9b3486a2d6 |
7
.deepsource.toml
Normal file
7
.deepsource.toml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
version = 1
|
||||||
|
|
||||||
|
[[analyzers]]
|
||||||
|
name = "rust"
|
||||||
|
|
||||||
|
[analyzers.meta]
|
||||||
|
msrv = "stable"
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue