Skip to content

Commit c4bf979

Browse files
committed
fix
1 parent 5d05a27 commit c4bf979

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

crates/oxc_minifier/src/peephole/convert_to_dotted_properties.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ mod test {
129129
test("a?.['default']", "a?.default");
130130
}
131131

132+
#[expect(clippy::literal_string_with_formatting_args)]
132133
#[test]
133134
fn test_convert_to_dotted_properties_computed_property_or_field() {
134135
test("const test1 = {['prop1']:87};", "const test1 = {prop1:87};");

crates/oxc_minifier/src/peephole/remove_unused_expression.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@ mod test {
885885
test("void (x == null && y)", "x ?? y");
886886
}
887887

888+
#[expect(clippy::literal_string_with_formatting_args)]
888889
#[test]
889890
fn test_object_literal() {
890891
test("({})", "");

crates/oxc_minifier/src/peephole/replace_known_methods.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ mod test {
561561
test_same(format!("x = {code}").as_str());
562562
}
563563

564+
#[expect(clippy::literal_string_with_formatting_args)]
564565
#[test]
565566
fn test_string_index_of() {
566567
test("x = 'abcdef'.indexOf('g')", "x = -1");

0 commit comments

Comments
 (0)