aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/method_resolution.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty/method_resolution.rs')
-rw-r--r--crates/ra_hir/src/ty/method_resolution.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/method_resolution.rs b/crates/ra_hir/src/ty/method_resolution.rs
index 1330d03a8..7c3839388 100644
--- a/crates/ra_hir/src/ty/method_resolution.rs
+++ b/crates/ra_hir/src/ty/method_resolution.rs
@@ -114,7 +114,7 @@ impl Ty {
114 pub fn lookup_method(self, db: &impl HirDatabase, name: &Name) -> Cancelable<Option<DefId>> { 114 pub fn lookup_method(self, db: &impl HirDatabase, name: &Name) -> Cancelable<Option<DefId>> {
115 self.iterate_methods(db, |f| { 115 self.iterate_methods(db, |f| {
116 let sig = f.signature(db); 116 let sig = f.signature(db);
117 if sig.name() == name && sig.has_self_arg() { 117 if sig.name() == name && sig.has_self_param() {
118 Ok(Some(f.def_id())) 118 Ok(Some(f.def_id()))
119 } else { 119 } else {
120 Ok(None) 120 Ok(None)