Skip to content

Commit 2d2615d

Browse files
bors[bot]lnicola
andauthored
Merge #6617
6617: Avoid string allocations in ignore_test r=lnicola a=lnicola CC @jakobhellermann Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 6294286 + 8af1ed6 commit 2d2615d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/assists/src/handlers/ignore_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub(crate) fn ignore_test(acc: &mut Assists, ctx: &AssistContext) -> Option<()>
5656

5757
fn has_ignore_attribute(fn_def: &ast::Fn) -> Option<ast::Attr> {
5858
fn_def.attrs().find_map(|attr| {
59-
if attr.path()?.syntax().text().to_string() == "ignore" {
59+
if attr.path()?.syntax().text() == "ignore" {
6060
Some(attr)
6161
} else {
6262
None

0 commit comments

Comments
 (0)