Skip to content

Commit cad4508

Browse files
author
Hiroki Okada
committed
avoid heap allocation via to_trimmed_string
1 parent 8528d14 commit cad4508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/biome_js_analyze/src/lint/style/no_done_callback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl Rule for NoDoneCallback {
8888
"beforeAll",
8989
"beforeEach",
9090
]
91-
.contains(&callee.to_trimmed_string().as_str())
91+
.contains(&callee.to_trimmed_text().as_ref())
9292
{
9393
0
9494
} else if ["it", "test"].contains(&callee_object_name.text_trimmed()) {

0 commit comments

Comments
 (0)