mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
refactor(allocator): rename fn params for Box::new_in (#4431)
Rename function params for `Box::new_in` to be more descriptive and match our naming conventions.
This commit is contained in:
parent
9e301755ea
commit
504daeda24
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue