aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/hir/src/code_model.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index 1319eb9cb..3277597c6 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -802,11 +802,7 @@ impl Function {
802 .and_then(|s| s.parent()) 802 .and_then(|s| s.parent())
803 .and_then(|s| Some(s.kind())); 803 .and_then(|s| Some(s.kind()));
804 804
805 match fn_parent_kind { 805 matches!(fn_parent_kind, Some(SyntaxKind::IMPL) | Some(SyntaxKind::TRAIT))
806 Some(SyntaxKind::IMPL) => true,
807 Some(SyntaxKind::TRAIT) => true,
808 _ => false,
809 }
810 } 806 }
811} 807}
812 808