Unnamed repository; edit this file 'description' to name the repository.
style: fix rustfmt formatting
protonblu 2 months ago
parent ad0457e · commit edacd0d
-rw-r--r--crates/ide-db/src/search.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/ide-db/src/search.rs b/crates/ide-db/src/search.rs
index 5cb5d4aa2b..4196a13aa3 100644
--- a/crates/ide-db/src/search.rs
+++ b/crates/ide-db/src/search.rs
@@ -1370,10 +1370,8 @@ fn is_name_ref_in_import(name_ref: &ast::NameRef) -> bool {
}
fn is_name_ref_in_test(sema: &Semantics<'_, RootDatabase>, name_ref: &ast::NameRef) -> bool {
- sema.ancestors_with_macros(name_ref.syntax().clone()).any(|node| {
- match ast::Fn::cast(node) {
- Some(it) => sema.to_def(&it).is_some_and(|func| func.is_test(sema.db)),
- None => false,
- }
+ sema.ancestors_with_macros(name_ref.syntax().clone()).any(|node| match ast::Fn::cast(node) {
+ Some(it) => sema.to_def(&it).is_some_and(|func| func.is_test(sema.db)),
+ None => false,
})
}