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

Compare commits

...

3 commits

Author SHA1 Message Date
deepsource-autofix[bot] 666e0b048f
Add .deepsource.toml 2023-03-10 18:07:06 +00:00
azur 8c3193bf2b
Merge pull request #5 from azur1s/deepsource-fix-9921241a
Replace unneeded field pattern with `..`
2023-03-11 01:05:52 +07:00
deepsource-autofix[bot] f8c6afbcba
Replace unneeded field pattern with .. 2023-03-10 18:05:38 +00:00
2 changed files with 8 additions and 1 deletions

7
.deepsource.toml Normal file
View file

@ -0,0 +1,7 @@
version = 1
[[analyzers]]
name = "rust"
[analyzers.meta]
msrv = "stable"

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