Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
roife committed Feb 27, 2024
1 parent 5f5cbbf commit c6c50ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ide-assists/src/handlers/inline_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ fn inline(
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)
.unwrap_or(param_ty)
} else {
param_ty
}
Expand Down

0 comments on commit c6c50ad

Please sign in to comment.