Skip to content

Commit

Permalink
Rustfmt fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Dec 21, 2019
1 parent ea853b4 commit 0c066fb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/stacked_borrows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,8 @@ impl<'tcx> Stack {
match perm {
Permission::SharedReadOnly => bug!("Cannot use SharedReadOnly for writing"),
Permission::Disabled => bug!("Cannot use Disabled for anything"),
Permission::Unique =>
// On a write, everything above us is incompatible.
{
granting + 1
}
Permission::Unique => granting + 1,
Permission::SharedReadWrite => {
// The SharedReadWrite *just* above us are compatible, to skip those.
let mut idx = granting + 1;
Expand Down

0 comments on commit 0c066fb

Please sign in to comment.