Skip to content

Commit cbde62c

Browse files
committed
fix tidy errors
1 parent e5a96a4 commit cbde62c

File tree

1 file changed

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

1 file changed

+1
-6
lines changed

src/librustc_mir/borrow_check/mod.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1578,14 +1578,10 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
15781578
Reservation(WriteKind::Mutate) | Write(WriteKind::Mutate) => {
15791579
if let Err(place_err) = self.is_mutable(place, is_local_mutation_allowed) {
15801580
error_reported = true;
1581-
15821581
let mut err_info = None;
1583-
15841582
match *place_err {
1585-
15861583
Place::Projection(box Projection {
15871584
ref base, elem:ProjectionElem::Deref}) => {
1588-
15891585
match *base {
15901586
Place::Local(local) => {
15911587
let locations = self.mir.find_assignments(local);
@@ -1594,8 +1590,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
15941590
self.get_secondary_err_msg(base)
15951591
} else {
15961592
self.get_default_err_msg(place)
1597-
};
1598-
1593+
};
15991594
err_info = Some((
16001595
self.mir.source_info(locations[0]).span,
16011596
"consider changing this to be a \

0 commit comments

Comments
 (0)