Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-ssr/src/matching.rs')
| -rw-r--r-- | crates/ide-ssr/src/matching.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-ssr/src/matching.rs b/crates/ide-ssr/src/matching.rs index cf7e7e08bc..b29053c0c2 100644 --- a/crates/ide-ssr/src/matching.rs +++ b/crates/ide-ssr/src/matching.rs @@ -575,7 +575,7 @@ impl<'db, 'sema> Matcher<'db, 'sema> { .resolve_method_call_as_callable(code) .and_then(|callable| { let (self_param, _) = callable.receiver_param(self.sema.db)?; - Some(self_param.source(self.sema.db)?.value.kind()) + Some(self.sema.source(self_param)?.value.kind()) }) .unwrap_or(ast::SelfParamKind::Owned); } |