fix: formatting in handlers/unresolved_method.rs

This commit is contained in:
Hamir Mahal 2024-05-30 16:39:41 -07:00
parent 7c34eb3880
commit 7fa555f8ba
No known key found for this signature in database

View file

@ -161,8 +161,7 @@ fn assoc_func_fix(ctx: &DiagnosticsContext<'_>, d: &hir::UnresolvedMethodCall) -
// we could omit generic parameters cause compiler can deduce it automatically // we could omit generic parameters cause compiler can deduce it automatically
if !need_to_take_receiver_as_first_arg && !generic_parameters.is_empty() { if !need_to_take_receiver_as_first_arg && !generic_parameters.is_empty() {
let generic_parameters = generic_parameters.join(", "); let generic_parameters = generic_parameters.join(", ");
receiver_type_adt_name = receiver_type_adt_name = format!("{receiver_type_adt_name}::<{generic_parameters}>");
format!("{receiver_type_adt_name}::<{generic_parameters}>");
} }
let method_name = call.name_ref()?; let method_name = call.name_ref()?;