Skip to content

Commit

Permalink
fix: formatting in handlers/unresolved_method.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed May 30, 2024
1 parent 7c34eb3 commit 7fa555f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/ide-diagnostics/src/handlers/unresolved_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ fn assoc_func_fix(ctx: &DiagnosticsContext<'_>, d: &hir::UnresolvedMethodCall) -
// we could omit generic parameters cause compiler can deduce it automatically
if !need_to_take_receiver_as_first_arg && !generic_parameters.is_empty() {
let generic_parameters = generic_parameters.join(", ");
receiver_type_adt_name =
format!("{receiver_type_adt_name}::<{generic_parameters}>");
receiver_type_adt_name = format!("{receiver_type_adt_name}::<{generic_parameters}>");
}

let method_name = call.name_ref()?;
Expand Down

0 comments on commit 7fa555f

Please sign in to comment.