Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_assists/src/handlers/inline_call.rs')
-rw-r--r--crates/ide_assists/src/handlers/inline_call.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/inline_call.rs b/crates/ide_assists/src/handlers/inline_call.rs
index 9cab0487e1..33e029c236 100644
--- a/crates/ide_assists/src/handlers/inline_call.rs
+++ b/crates/ide_assists/src/handlers/inline_call.rs
@@ -199,7 +199,7 @@ pub(crate) fn inline_(
.sema
.type_of_expr(&expr)
.filter(TypeInfo::has_adjustment)
- .and_then(|_| param_ty);
+ .and(param_ty);
body.push_front(
make::let_stmt(pat, ty, Some(expr)).clone_for_update().into(),
)