mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
question_mark
This commit is contained in:
parent
6738edc259
commit
3cf1358eb8
4 changed files with 4 additions and 10 deletions
|
@ -2081,9 +2081,7 @@ impl Function {
|
|||
}
|
||||
|
||||
pub fn method_params(self, db: &dyn HirDatabase) -> Option<Vec<Param>> {
|
||||
if self.self_param(db).is_none() {
|
||||
return None;
|
||||
}
|
||||
self.self_param(db)?;
|
||||
Some(self.params_without_self(db))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue