Skip to content

Commit 061eb97

Browse files
Fix spacing
1 parent f6cddd2 commit 061eb97

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_infer/src/infer/error_reporting

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,11 +2453,11 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> {
24532453
&& suggestion_scope == type_scope
24542454
{
24552455
let suggestion =
2456-
if has_lifetimes { format!("+ {lt_name}") } else { format!(": {lt_name}") };
2456+
if has_lifetimes { format!(" + {lt_name}") } else { format!(": {lt_name}") };
24572457

24582458
if needs_parentheses {
24592459
suggs.push((sp.shrink_to_lo(), "(".to_string()));
2460-
suggs.push((sp.shrink_to_hi(), format!(") {suggestion}")));
2460+
suggs.push((sp.shrink_to_hi(), format!("){suggestion}")));
24612461
} else {
24622462
suggs.push((sp, suggestion))
24632463
}

0 commit comments

Comments
 (0)