mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Fix param number
This commit is contained in:
parent
bc4de7128f
commit
93dc703011
1 changed files with 1 additions and 1 deletions
|
@ -460,7 +460,7 @@ impl AnalysisImpl {
|
||||||
|
|
||||||
if num_params == 1 {
|
if num_params == 1 {
|
||||||
if !has_self {
|
if !has_self {
|
||||||
current_parameter = Some(1);
|
current_parameter = Some(0);
|
||||||
}
|
}
|
||||||
} else if num_params > 1 {
|
} else if num_params > 1 {
|
||||||
// Count how many parameters into the call we are.
|
// Count how many parameters into the call we are.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue