Skip to content

Commit 776407e

Browse files
author
Saleem Jaffer
committed
tidy checks
1 parent 23c87a1 commit 776407e

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

src/librustc_mir/borrow_check/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,8 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
19851985
Place::Base(PlaceBase::Static(ref static_)) => {
19861986
if static_.promoted.is_some() ||
19871987
(static_.promoted.is_none() &&
1988-
self.infcx.tcx.is_static(static_.def_id) == Some(hir::Mutability::MutMutable)
1988+
self.infcx.tcx.is_static(static_.def_id)
1989+
== Some(hir::Mutability::MutMutable)
19891990
){
19901991
Ok(RootPlace {
19911992
place,

0 commit comments

Comments
 (0)