mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
fix: formatting in handlers/unresolved_method.rs
This commit is contained in:
parent
7c34eb3880
commit
7fa555f8ba
1 changed files with 1 additions and 2 deletions
|
@ -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()?;
|
||||||
|
|
Loading…
Reference in a new issue