Skip to content

Commit 91c88e2

Browse files
committed
fix(allocator): fix lint warning building WASM (#13897)
`thread_count` var is unused on 32-bit platforms, causing a lint warning when building playground.
1 parent 5ff91bc commit 91c88e2

File tree

1 file changed

+1
-0
lines changed
  • crates/oxc_allocator/src/pool

1 file changed

+1
-0
lines changed

crates/oxc_allocator/src/pool/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ impl AllocatorPool {
5555

5656
#[cfg(not(all(target_pointer_width = "64", target_endian = "little")))]
5757
{
58+
let _thread_count = thread_count; // Avoid unused vars lint warning
5859
panic!("Fixed size allocators are only supported on 64-bit little-endian platforms");
5960
}
6061
}

0 commit comments

Comments
 (0)