Skip to content

Commit 76b86b2

Browse files
committed
fix: clippy and format
1 parent ec5236f commit 76b86b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/ide-assists/src/handlers/inline_call.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,7 @@ fn inline(
417417
let mut insert_let_stmt = || {
418418
let param_ty = param_ty.clone().map(|param_ty| {
419419
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)
420+
ast::Type::cast(insert_ws_into(param_ty.syntax().clone())).unwrap_or(param_ty)
422421
} else {
423422
param_ty
424423
}

0 commit comments

Comments
 (0)