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 98b16ea commit 57b2415Copy full SHA for 57b2415
src/tools/rust-analyzer/crates/ide/src/inlay_hints/bind_pat.rs
@@ -36,10 +36,8 @@ pub(super) fn hints(
36
if it.ty().is_some() {
37
return None;
38
}
39
- if config.hide_closure_parameter_hints {
40
- if it.syntax().ancestors().any(|n| matches!(ast::Expr::cast(n), Some(ast::Expr::ClosureExpr(_)))) {
41
- return None;
42
- }
+ if config.hide_closure_parameter_hints && it.syntax().ancestors().any(|n| matches!(ast::Expr::cast(n), Some(ast::Expr::ClosureExpr(_)))) {
+ return None;
43
44
Some(it.colon_token())
45
},
0 commit comments