mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
nonminimal_bool
This commit is contained in:
parent
e58b683201
commit
e6f9f4c0e4
3 changed files with 2 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ impl ActiveParameter {
|
|||
|
||||
let idx = active_parameter?;
|
||||
let mut params = signature.params(sema.db);
|
||||
if !(idx < params.len()) {
|
||||
if idx >= params.len() {
|
||||
cov_mark::hit!(too_many_arguments);
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue