Skip to content

Commit

Permalink
refactor: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
bluurryy committed Apr 22, 2024
1 parent 0fb85e7 commit 25717c0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/bump_scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,7 @@ where

#[inline(always)]
pub(crate) fn ensure_allocated<E: ErrorBehavior>(&self) -> Result<(), E> {
if GUARANTEED_ALLOCATED {
// we can only point to the empty chunk if we did a `unallocated`
return Ok(());
}

if self.chunk.get().is_the_empty_chunk() {
if self.is_unallocated() {
self.allocate_first_chunk()?;
}

Expand Down

0 comments on commit 25717c0

Please sign in to comment.