Skip to content

Commit

Permalink
fix: deno_ast 0.43
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 28, 2024
1 parent b37fbcd commit 2f0aa8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ harness = false

[dependencies]
anyhow = "1.0.64"
deno_ast = { version = "0.42.0", features = ["view"] }
deno_ast = { version = "0.43.0", features = ["view"] }
dprint-core = { version = "0.66.2", features = ["formatting"] }
dprint-core-macros = "0.1.0"
percent-encoding = "2.3.1"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.80.0"
channel = "1.82.0"
components = ["clippy"]
2 changes: 1 addition & 1 deletion src/generation/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ fn gen_arrow_func_expr<'a>(node: &'a ArrowExpr<'a>, context: &mut Context<'a>) -
BlockStmtOrExpr::BlockStmt(_) => true,
BlockStmtOrExpr::Expr(expr) => match expr {
Expr::Paren(_) | Expr::Array(_) => true,
Expr::Tpl(tpl) => tpl.quasis[0].raw().starts_with(|c: char| c == '\n' || c == '\r'),
Expr::Tpl(tpl) => tpl.quasis[0].raw().starts_with(['\n', '\r']),
_ => is_jsx_paren_expr_handled_node(expr.into(), context),
},
}
Expand Down

0 comments on commit 2f0aa8f

Please sign in to comment.