Skip to content

Commit 5c4c286

Browse files
authored
fix: deno_ast 0.43 (#679)
1 parent b37fbcd commit 5c4c286

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ harness = false
3131

3232
[dependencies]
3333
anyhow = "1.0.64"
34-
deno_ast = { version = "0.42.0", features = ["view"] }
34+
deno_ast = { version = "0.43.0", features = ["view"] }
3535
dprint-core = { version = "0.66.2", features = ["formatting"] }
3636
dprint-core-macros = "0.1.0"
3737
percent-encoding = "2.3.1"

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.80.0"
2+
channel = "1.81.0"
33
components = ["clippy"]

src/generation/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ fn gen_arrow_func_expr<'a>(node: &'a ArrowExpr<'a>, context: &mut Context<'a>) -
17961796
BlockStmtOrExpr::BlockStmt(_) => true,
17971797
BlockStmtOrExpr::Expr(expr) => match expr {
17981798
Expr::Paren(_) | Expr::Array(_) => true,
1799-
Expr::Tpl(tpl) => tpl.quasis[0].raw().starts_with(|c: char| c == '\n' || c == '\r'),
1799+
Expr::Tpl(tpl) => tpl.quasis[0].raw().starts_with(['\n', '\r']),
18001800
_ => is_jsx_paren_expr_handled_node(expr.into(), context),
18011801
},
18021802
}

0 commit comments

Comments
 (0)