From 477c41dd9cb462fa31f91359c9930b14fa920d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 8 Apr 2025 14:04:39 +0900 Subject: [PATCH 1/2] build: Update swc_core to v21 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b4ee2e1..d0622dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ swc_core = { features = [ "ecma_codegen", "ecma_parser", "ecma_visit", -], version = "19" } +], version = "21" } rustc-hash = "2" [dev-dependencies] From 9906491a49671ad2c83825cfd1ec23bc805e3300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 8 Apr 2025 14:11:09 +0900 Subject: [PATCH 2/2] lint --- src/mdast_util_to_hast.rs | 4 ++-- src/mdx_plugin_recma_jsx_rewrite.rs | 2 +- src/swc.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mdast_util_to_hast.rs b/src/mdast_util_to_hast.rs index ba29a7b..543a5ad 100644 --- a/src/mdast_util_to_hast.rs +++ b/src/mdast_util_to_hast.rs @@ -690,7 +690,7 @@ fn transform_list_item( if matches!(parent, mdast::Node::List(_)) { loose = list_loose(parent); } - }; + } let mut properties = vec![]; @@ -1229,7 +1229,7 @@ fn append_result(list: &mut Vec, result: Result) { Result::Fragment(mut fragment) => list.append(&mut fragment), Result::Node(node) => list.push(node), Result::None => {} - }; + } } /// Replace line endings (CR, LF, CRLF) with spaces. diff --git a/src/mdx_plugin_recma_jsx_rewrite.rs b/src/mdx_plugin_recma_jsx_rewrite.rs index 84a48f5..898be82 100644 --- a/src/mdx_plugin_recma_jsx_rewrite.rs +++ b/src/mdx_plugin_recma_jsx_rewrite.rs @@ -390,7 +390,7 @@ impl State<'_> { definite: false, }; declarators.push(declarator); - }; + } // Add the variable declaration. let decl = VarDecl { diff --git a/src/swc.rs b/src/swc.rs index 962dc73..95868f2 100644 --- a/src/swc.rs +++ b/src/swc.rs @@ -145,7 +145,7 @@ fn parse_expression_core( return Ok(Some(d.expr)); } } - }; + } return Err(( expr_span,