feature: Make replace_or_with_or_else assists more generally applicable

This commit is contained in:
Lukas Wirth 2023-03-06 22:17:16 +01:00
parent e6ba791dce
commit 199bc82ce8
8 changed files with 397 additions and 411 deletions

View file

@ -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);
}
}