Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | crates/ide/src/inlay_hints.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs index 47f1a08b6f..5eb63a42ad 100644 --- a/crates/ide/src/inlay_hints.rs +++ b/crates/ide/src/inlay_hints.rs @@ -463,6 +463,10 @@ fn closure_ret_hints( return None; } + if closure.ret_type().is_some() { + return None; + } + let param_list = match closure.body() { Some(ast::Expr::BlockExpr(_)) => closure.param_list()?, _ => return None, |