We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c161b8 commit 6b4164eCopy full SHA for 6b4164e
src/stacked_borrows.rs
@@ -237,10 +237,10 @@ impl<'tcx> Stack {
237
bug!("Cannot use Disabled for anything"),
238
Permission::Unique =>
239
// On a write, everything above us is incompatible.
240
- granting+1,
+ granting + 1,
241
Permission::SharedReadWrite => {
242
// The SharedReadWrite *just* above us are compatible, to skip those.
243
- let mut idx = granting+1;
+ let mut idx = granting + 1;
244
while let Some(item) = self.borrows.get(idx) {
245
if item.perm == Permission::SharedReadWrite {
246
// Go on.
0 commit comments