Skip to content

Commit 37b2eea

Browse files
authored
Merge pull request #730 from RalfJung/stacked-borrows-2
nits
2 parents 858077e + 6b4164e commit 37b2eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stacked_borrows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ impl<'tcx> Stack {
237237
bug!("Cannot use Disabled for anything"),
238238
Permission::Unique =>
239239
// On a write, everything above us is incompatible.
240-
granting+1,
240+
granting + 1,
241241
Permission::SharedReadWrite => {
242242
// The SharedReadWrite *just* above us are compatible, to skip those.
243-
let mut idx = granting+1;
243+
let mut idx = granting + 1;
244244
while let Some(item) = self.borrows.get(idx) {
245245
if item.perm == Permission::SharedReadWrite {
246246
// Go on.

0 commit comments

Comments
 (0)