Skip to content

Commit d3b80e1

Browse files
committed
minor changes
1 parent 57b2415 commit d3b80e1

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/ide/src/inlay_hints

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/crates/ide/src/inlay_hints/bind_pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(super) fn hints(
3636
if it.ty().is_some() {
3737
return None;
3838
}
39-
if config.hide_closure_parameter_hints && it.syntax().ancestors().any(|n| matches!(ast::Expr::cast(n), Some(ast::Expr::ClosureExpr(_)))) {
39+
if config.hide_closure_parameter_hints && it.syntax().ancestors().nth(2).is_none_or(|n| matches!(ast::Expr::cast(n), Some(ast::Expr::ClosureExpr(_)))) {
4040
return None;
4141
}
4242
Some(it.colon_token())

0 commit comments

Comments
 (0)