mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
avoid using format!("{}", ..)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user