From 7cc90134d3f2fc776b86c79ffd601bd5f396259a Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 4 Mar 2024 19:24:06 +0800 Subject: [PATCH] fix: broken build from codegen API change --- crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs b/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs index db69e1a9e..1f0bc8db2 100644 --- a/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs +++ b/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs @@ -76,7 +76,7 @@ impl PreferStrictEqual { .replace(matcher_name.to_string().as_str(), "toStrictEqual") .as_bytes(), ); - Fix::new(formatter.into_code(), matcher.span) + Fix::new(formatter.into_source_text(), matcher.span) }); } }