avoid using format!("{}", ..)
This commit is contained in:
parent
1b7efb5ade
commit
8352c02fc2
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
tcx,
|
||||
generics,
|
||||
diag,
|
||||
&format!("{}", proj.self_ty()),
|
||||
&proj.self_ty().to_string(),
|
||||
&path,
|
||||
None,
|
||||
matching_span,
|
||||
|
@ -153,7 +153,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
|
|||
tcx,
|
||||
generics,
|
||||
diag,
|
||||
&format!("{}", proj.self_ty()),
|
||||
&proj.self_ty().to_string(),
|
||||
&path,
|
||||
None,
|
||||
matching_span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue