fix typo: is_reserved
This commit is contained in:
parent
d1174a974e
commit
84edcb9869
@ -283,7 +283,7 @@ fn tb_reborrow(
|
||||
// interleaving, but wether UB happens can depend on whether a write occurs in the
|
||||
// future...
|
||||
let is_write = new_perm.initial_state.is_active()
|
||||
|| (new_perm.initial_state.is_resrved() && new_perm.protector.is_some());
|
||||
|| (new_perm.initial_state.is_reserved() && new_perm.protector.is_some());
|
||||
if is_write {
|
||||
// Need to get mutable access to alloc_extra.
|
||||
// (Cannot always do this as we can do read-only reborrowing on read-only allocations.)
|
||||
|
@ -152,7 +152,7 @@ pub fn is_active(self) -> bool {
|
||||
matches!(self.inner, Active)
|
||||
}
|
||||
|
||||
pub fn is_resrved(self) -> bool {
|
||||
pub fn is_reserved(self) -> bool {
|
||||
matches!(self.inner, Reserved { .. })
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user