mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Fix function calls
This commit is contained in:
parent
fc8024de51
commit
a5da770ec6
10 changed files with 9 additions and 12 deletions
|
@ -183,8 +183,7 @@ impl Link {
|
|||
root: ast::Root<'a>,
|
||||
) -> ast::Module<'a> {
|
||||
modules(root)
|
||||
.filter(|(name, _)| name == &tree.link(self).name)
|
||||
.next()
|
||||
.find(|(name, _)| name == &tree.link(self).name)
|
||||
.unwrap()
|
||||
.1
|
||||
}
|
||||
|
|
|
@ -393,7 +393,7 @@ impl AnalysisImpl {
|
|||
|
||||
// If we have a method call eat the first param since it's just self.
|
||||
if has_self {
|
||||
commas = commas + 1;
|
||||
commas += 1;
|
||||
}
|
||||
|
||||
current_parameter = Some(commas);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue