mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
minor changes
This commit is contained in:
parent
6b328750e5
commit
7d1fedc4f3
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ pub(super) fn hints(
|
|||
if it.ty().is_some() {
|
||||
return None;
|
||||
}
|
||||
if config.hide_closure_parameter_hints && it.syntax().ancestors().any(|n| matches!(ast::Expr::cast(n), Some(ast::Expr::ClosureExpr(_)))) {
|
||||
if config.hide_closure_parameter_hints && it.syntax().ancestors().nth(2).is_none_or(|n| matches!(ast::Expr::cast(n), Some(ast::Expr::ClosureExpr(_)))) {
|
||||
return None;
|
||||
}
|
||||
Some(it.colon_token())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue