aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2018-10-18 00:25:37 +0100
committerAlan Du <[email protected]>2018-10-18 00:42:23 +0100
commita5da770ec60a73abcc5350f25146be973540063f (patch)
treed0384d6a786c3a07689dc4dff04209207487b76b /crates/ra_analysis/src
parentfc8024de51261d252b1ad88566db6e246d14ee16 (diff)
Fix function calls
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r--crates/ra_analysis/src/descriptors.rs3
-rw-r--r--crates/ra_analysis/src/imp.rs2
2 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_analysis/src/descriptors.rs b/crates/ra_analysis/src/descriptors.rs
index 98429326c..dced99b07 100644
--- a/crates/ra_analysis/src/descriptors.rs
+++ b/crates/ra_analysis/src/descriptors.rs
@@ -183,8 +183,7 @@ impl Link {
183 root: ast::Root<'a>, 183 root: ast::Root<'a>,
184 ) -> ast::Module<'a> { 184 ) -> ast::Module<'a> {
185 modules(root) 185 modules(root)
186 .filter(|(name, _)| name == &tree.link(self).name) 186 .find(|(name, _)| name == &tree.link(self).name)
187 .next()
188 .unwrap() 187 .unwrap()
189 .1 188 .1
190 } 189 }
diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs
index 1c16852b8..b4faf0b5b 100644
--- a/crates/ra_analysis/src/imp.rs
+++ b/crates/ra_analysis/src/imp.rs
@@ -393,7 +393,7 @@ impl AnalysisImpl {
393 393
394 // If we have a method call eat the first param since it's just self. 394 // If we have a method call eat the first param since it's just self.
395 if has_self { 395 if has_self {
396 commas = commas + 1; 396 commas += 1;
397 } 397 }
398 398
399 current_parameter = Some(commas); 399 current_parameter = Some(commas);