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 4522bf4 commit 6b32875Copy full SHA for 6b32875
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