Same for BorrowRef
This commit is contained in:
parent
c4c428b6da
commit
09707ee12a
@ -1374,7 +1374,7 @@ impl Clone for BorrowRef<'_> {
|
|||||||
debug_assert!(is_reading(borrow));
|
debug_assert!(is_reading(borrow));
|
||||||
// Prevent the borrow counter from overflowing into
|
// Prevent the borrow counter from overflowing into
|
||||||
// a writing borrow.
|
// a writing borrow.
|
||||||
assert!(borrow != isize::MAX);
|
assert!(borrow != BorrowFlag::MAX);
|
||||||
self.borrow.set(borrow + 1);
|
self.borrow.set(borrow + 1);
|
||||||
BorrowRef { borrow: self.borrow }
|
BorrowRef { borrow: self.borrow }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user