From e4a026489a24fa3596261c03b38fabb24a5bb5c8 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Tue, 23 Jul 2024 16:15:36 +0100 Subject: [PATCH] refactor(allocator): rename fn params for `Box::new_in` --- crates/oxc_allocator/src/arena.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_allocator/src/arena.rs b/crates/oxc_allocator/src/arena.rs index 30399a3d3669e6..4a5cb06405ae75 100644 --- a/crates/oxc_allocator/src/arena.rs +++ b/crates/oxc_allocator/src/arena.rs @@ -36,8 +36,8 @@ impl<'alloc, T> Box<'alloc, T> { } impl<'alloc, T> Box<'alloc, T> { - pub fn new_in(x: T, alloc: &Allocator) -> Self { - Self(alloc.alloc(x).into(), PhantomData) + pub fn new_in(value: T, allocator: &Allocator) -> Self { + Self(allocator.alloc(value).into(), PhantomData) } /// Create a fake `Box` with a dangling pointer.