Skip to content

Commit c792d1e

Browse files
committed
tidy fixes
1 parent 2ad20e8 commit c792d1e

File tree

1 file changed

+3
-3
lines changed
  • src/librustc_mir/borrow_check

1 file changed

+3
-3
lines changed

src/librustc_mir/borrow_check/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1529,11 +1529,11 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
15291529

15301530
fn get_primary_err_msg(&self, place:&Place<'tcx>) -> String{
15311531
if let Some(name) = self.describe_place(place) {
1532-
format!("`{}` is a `&` reference, so the data it refers to cannot be written", name)
1532+
format!("`{}` is a `&` reference, so the data it refers to cannot be written", name)
15331533
} else {
15341534
format!("cannot assign through `&`-reference")
15351535
}
1536-
}
1536+
}
15371537

15381538
/// Check the permissions for the given place and read or write kind
15391539
///
@@ -1592,7 +1592,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
15921592
self.get_secondary_err_msg(base)
15931593
} else {
15941594
self.get_default_err_msg(place)
1595-
};
1595+
};
15961596
err_info = Some((
15971597
self.mir.source_info(locations[0]).span,
15981598
"consider changing this to be a \

0 commit comments

Comments
 (0)