Skip to content

Commit 09707ee

Browse files
authored
Same for BorrowRef
1 parent c4c428b commit 09707ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ impl Clone for BorrowRef<'_> {
13741374
debug_assert!(is_reading(borrow));
13751375
// Prevent the borrow counter from overflowing into
13761376
// a writing borrow.
1377-
assert!(borrow != isize::MAX);
1377+
assert!(borrow != BorrowFlag::MAX);
13781378
self.borrow.set(borrow + 1);
13791379
BorrowRef { borrow: self.borrow }
13801380
}

0 commit comments

Comments
 (0)