Skip to content

Commit e355d00

Browse files
eholkoli-obk
andauthored
Apply suggestions from code review
Co-authored-by: Oli Scherer <[email protected]>
1 parent dddf26c commit e355d00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_trait_selection/src/error_reporting/traits/fulfillment_errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,8 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
907907
.coroutine_kind(self.tcx.coroutine_for_closure(closure_def_id))
908908
.unwrap()
909909
{
910-
rustc_hir::CoroutineKind::Desugared(desugaring, _) => format!("{desugaring}"),
911-
coro => format!("{coro}"),
910+
rustc_hir::CoroutineKind::Desugared(desugaring, _) => desugaring.to_string(),
911+
coro => coro.to_string(),
912912
};
913913
let mut err = self.dcx().create_err(CoroClosureNotFn {
914914
span: self.tcx.def_span(closure_def_id),

0 commit comments

Comments
 (0)