aboutsummaryrefslogtreecommitdiff
path: root/crates/hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir')
-rw-r--r--crates/hir/src/code_model.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs
index d04de053f..1319eb9cb 100644
--- a/crates/hir/src/code_model.rs
+++ b/crates/hir/src/code_model.rs
@@ -790,7 +790,7 @@ impl Function {
790 790
791 /// whether this function is associated with some trait/impl 791 /// whether this function is associated with some trait/impl
792 pub fn is_associated(self, db: &dyn HirDatabase) -> bool { 792 pub fn is_associated(self, db: &dyn HirDatabase) -> bool {
793 if let Some(_) = self.self_param(db) { 793 if self.self_param(db).is_some() {
794 return false; 794 return false;
795 } 795 }
796 796