Skip to content

Commit 152f1f9

Browse files
committed
refactor(allocator): remove Default impl for AllocatorPool (#13128)
Since #13106, `Default` is not used, and it shouldn't be. Remove it.
1 parent 5af9cc7 commit 152f1f9

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

crates/oxc_allocator/src/pool.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use crate::Allocator;
55
/// A thread-safe pool for reusing [`Allocator`] instances to reduce allocation overhead.
66
///
77
/// Internally uses a `Vec` protected by a `Mutex` to store available allocators.
8-
#[derive(Default)]
98
pub struct AllocatorPool {
109
allocators: Mutex<Vec<Allocator>>,
1110
}

crates/oxc_allocator/src/pool_fixed_size.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const FOUR_GIB: usize = 1 << 32;
2222
/// A thread-safe pool for reusing [`Allocator`] instances to reduce allocation overhead.
2323
///
2424
/// Internally uses a `Vec` protected by a `Mutex` to store available allocators.
25-
#[derive(Default)]
2625
pub struct AllocatorPool {
2726
/// Allocators in the pool
2827
allocators: Mutex<Vec<FixedSizeAllocator>>,

0 commit comments

Comments
 (0)