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 ec5236f commit 76b86b2Copy full SHA for 76b86b2
crates/ide-assists/src/handlers/inline_call.rs
@@ -417,8 +417,7 @@ fn inline(
417
let mut insert_let_stmt = || {
418
let param_ty = param_ty.clone().map(|param_ty| {
419
if sema.hir_file_for(param_ty.syntax()).is_macro() {
420
- ast::Type::cast(insert_ws_into(param_ty.syntax().clone()))
421
- .unwrap_or_else(|| param_ty)
+ ast::Type::cast(insert_ws_into(param_ty.syntax().clone())).unwrap_or(param_ty)
422
} else {
423
param_ty
424
}
0 commit comments