Skip to content

Commit

Permalink
avoid using format!("{}", ..)
Browse files Browse the repository at this point in the history
  • Loading branch information
TaKO8Ki committed Jun 27, 2023
1 parent 1b7efb5 commit 8352c02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
tcx,
generics,
diag,
&format!("{}", proj.self_ty()),
&proj.self_ty().to_string(),
&path,
None,
matching_span,
Expand All @@ -153,7 +153,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
tcx,
generics,
diag,
&format!("{}", proj.self_ty()),
&proj.self_ty().to_string(),
&path,
None,
matching_span,
Expand Down

0 comments on commit 8352c02

Please sign in to comment.