Skip to content

Commit 59e1091

Browse files
committed
refactor(allocator): add generic param to Bump in ChunkIter (#20974)
Refactor. `PhantomData<&'a mut Bump>` -> `PhantomData<&'a mut Bump<MIN_ALIGN>>`. The generic param is not necessary here due to the `PhantomData` wrapper, but it's more explicit and matches `ChunkRawIter`.
1 parent f5e228f commit 59e1091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_allocator/src/bump.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ impl<const MIN_ALIGN: usize> Bump<MIN_ALIGN> {
24412441
#[derive(Debug)]
24422442
pub struct ChunkIter<'a, const MIN_ALIGN: usize = 1> {
24432443
raw: ChunkRawIter<'a, MIN_ALIGN>,
2444-
bump: PhantomData<&'a mut Bump>,
2444+
bump: PhantomData<&'a mut Bump<MIN_ALIGN>>,
24452445
}
24462446

24472447
impl<'a, const MIN_ALIGN: usize> Iterator for ChunkIter<'a, MIN_ALIGN> {

0 commit comments

Comments
 (0)