Skip to content

Commit 8352c02

Browse files
committed
avoid using format!("{}", ..)
1 parent 1b7efb5 commit 8352c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_infer/src/infer/error_reporting/note_and_explain.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
139139
tcx,
140140
generics,
141141
diag,
142-
&format!("{}", proj.self_ty()),
142+
&proj.self_ty().to_string(),
143143
&path,
144144
None,
145145
matching_span,
@@ -153,7 +153,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
153153
tcx,
154154
generics,
155155
diag,
156-
&format!("{}", proj.self_ty()),
156+
&proj.self_ty().to_string(),
157157
&path,
158158
None,
159159
matching_span,

0 commit comments

Comments
 (0)