Skip to content

Commit

Permalink
fix: clippy and format
Browse files Browse the repository at this point in the history
  • Loading branch information
roife committed Feb 27, 2024
1 parent ec5236f commit 76b86b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ide-assists/src/handlers/inline_call.rs
Expand Up @@ -417,8 +417,7 @@ fn inline(
let mut insert_let_stmt = || {
let param_ty = param_ty.clone().map(|param_ty| {
if sema.hir_file_for(param_ty.syntax()).is_macro() {
ast::Type::cast(insert_ws_into(param_ty.syntax().clone()))
.unwrap_or_else(|| param_ty)
ast::Type::cast(insert_ws_into(param_ty.syntax().clone())).unwrap_or(param_ty)
} else {
param_ty
}
Expand Down

0 comments on commit 76b86b2

Please sign in to comment.