Skip to content

Commit 6e42bc3

Browse files
committed
Fix formatting
This code is sufficiently complex -- I'm guessing due to the very long `match` guards -- that rustfmt doesn't format it.
1 parent 935a99a commit 6e42bc3

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_typeck/src/check

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ This requires ownership of the string on the left.";
571571
if let IsAssign::No = is_assign { // Do not supply this message if `&str += &str`
572572
err.span_label(op.span, "`+` cannot be used to concatenate two `&str` strings");
573573
err.note(str_concat_note);
574-
if let hir::ExprKind::AddrOf(_,_,lhs_inner_expr) = lhs_expr.kind {
574+
if let hir::ExprKind::AddrOf(_, _, lhs_inner_expr) = lhs_expr.kind {
575575
err.span_suggestion(
576576
lhs_expr.span.until(lhs_inner_expr.span),
577577
rm_borrow_msg,

0 commit comments

Comments
 (0)