We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b32875 commit 7d1fedcCopy full SHA for 7d1fedc
crates/ide/src/inlay_hints/bind_pat.rs
@@ -36,7 +36,7 @@ pub(super) fn hints(
36
if it.ty().is_some() {
37
return None;
38
}
39
- 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(_)))) {
40
41
42
Some(it.colon_token())
0 commit comments