mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
feature: Make replace_or_with_or_else assists more generally applicable
This commit is contained in:
parent
e6ba791dce
commit
199bc82ce8
8 changed files with 397 additions and 411 deletions
|
@ -561,7 +561,7 @@ impl<'db, 'sema> Matcher<'db, 'sema> {
|
|||
.sema
|
||||
.resolve_method_call_as_callable(code)
|
||||
.and_then(|callable| callable.receiver_param(self.sema.db))
|
||||
.map(|self_param| self_param.kind())
|
||||
.map(|(self_param, _)| self_param.kind())
|
||||
.unwrap_or(ast::SelfParamKind::Owned);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue