From 93dc703011c99d52bd036f745c31388a5f9e3523 Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Tue, 30 Oct 2018 14:09:53 -0400 Subject: Fix param number --- crates/ra_analysis/src/imp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_analysis') diff --git a/crates/ra_analysis/src/imp.rs b/crates/ra_analysis/src/imp.rs index 3557bb5cc..57657105b 100644 --- a/crates/ra_analysis/src/imp.rs +++ b/crates/ra_analysis/src/imp.rs @@ -460,7 +460,7 @@ impl AnalysisImpl { if num_params == 1 { if !has_self { - current_parameter = Some(1); + current_parameter = Some(0); } } else if num_params > 1 { // Count how many parameters into the call we are. -- cgit v1.2.3