diff --git a/crates/assists/src/handlers/ignore_test.rs b/crates/assists/src/handlers/ignore_test.rs index 2b9dff081f..5096a00058 100644 --- a/crates/assists/src/handlers/ignore_test.rs +++ b/crates/assists/src/handlers/ignore_test.rs @@ -56,7 +56,7 @@ pub(crate) fn ignore_test(acc: &mut Assists, ctx: &AssistContext) -> Option<()> fn has_ignore_attribute(fn_def: &ast::Fn) -> Option { fn_def.attrs().find_map(|attr| { - if attr.path()?.syntax().text().to_string() == "ignore" { + if attr.path()?.syntax().text() == "ignore" { Some(attr) } else { None