diff options
Diffstat (limited to 'crates/ra_hir/src/ty/infer.rs')
-rw-r--r-- | crates/ra_hir/src/ty/infer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs index bf57bb3b7..7d9b86752 100644 --- a/crates/ra_hir/src/ty/infer.rs +++ b/crates/ra_hir/src/ty/infer.rs | |||
@@ -577,7 +577,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> { | |||
577 | 577 | ||
578 | crate::ImplItem::Const(konst) => { | 578 | crate::ImplItem::Const(konst) => { |
579 | let data = konst.data(self.db); | 579 | let data = konst.data(self.db); |
580 | if segment.name == *data.name() { | 580 | if Some(&segment.name) == data.name() { |
581 | Some(ValueNs::Const(konst)) | 581 | Some(ValueNs::Const(konst)) |
582 | } else { | 582 | } else { |
583 | None | 583 | None |