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:
overlookmotel 2024-07-23 15:24:29 +00:00
parent 9e301755ea
commit 504daeda24

View file

@ -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.