Skip to content

Commit 12d1415

Browse files
committed
tidy fixes
1 parent c119206 commit 12d1415

File tree

1 file changed

+6
-4
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+6
-4
lines changed

src/librustc_mir/borrow_check/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
15531553

15541554
if place != place_err {
15551555
if let Some(name) = self.describe_place(place_err) {
1556-
err.note(&format!("the value which is causing this path not to be mutable is...: `{}`", name));
1556+
err.note(&format!("the value which is causing this path not to be mutable \
1557+
is...: `{}`", name));
15571558
}
15581559
}
15591560

@@ -1580,7 +1581,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
15801581
} else {
15811582
self.get_main_error_message(place)
15821583
};
1583-
err_info = Some((self.mir.source_info(locations[0]).span,
1584+
err_info = Some((
1585+
self.mir.source_info(locations[0]).span,
15841586
"consider changing this to be a \
15851587
mutable reference: `&mut`", item_msg,
15861588
"cannot assign through `&`-reference"));
@@ -1608,8 +1610,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
16081610
err.span_label(span, "cannot mutate");
16091611
if place != place_err {
16101612
if let Some(name) = self.describe_place(place_err) {
1611-
err.note(&format!("the value which is causing this path not to be mutable is...: `{}`",
1612-
name));
1613+
err.note(&format!("the value which is causing this path not to be \
1614+
mutable is...: `{}`", name));
16131615
}
16141616
}
16151617
err.emit();

0 commit comments

Comments
 (0)