avoid using format!("{}", ..)

This commit is contained in:
Takayuki Maeda
2023-06-27 22:12:29 +09:00
parent 1b7efb5ade
commit 8352c02fc2
@@ -139,7 +139,7 @@ pub fn note_and_explain_type_err(
tcx,
generics,
diag,
&format!("{}", proj.self_ty()),
&proj.self_ty().to_string(),
&path,
None,
matching_span,
@@ -153,7 +153,7 @@ pub fn note_and_explain_type_err(
tcx,
generics,
diag,
&format!("{}", proj.self_ty()),
&proj.self_ty().to_string(),
&path,
None,
matching_span,