Skip to content

Commit 6b4164e

Browse files
committed
nits
1 parent 9c161b8 commit 6b4164e

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)