We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b2415 commit d3b80e1Copy full SHA for d3b80e1
src/tools/rust-analyzer/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