diff options
| author | joboet <jonasboettiger@icloud.com> | 2023-01-17 14:08:35 +0100 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2023-01-17 14:08:35 +0100 |
| commit | 7f2cf191917e4e562ee49ab51a324714bbb36412 (patch) | |
| tree | dc6c77007e0d62c308d1f16542d04eef917d97ed /library/std/src/sys_common | |
| parent | 159ba8a92c9e2fa4121f106176309521f4af87e9 (diff) | |
refactor[std]: do not use box syntax
Diffstat (limited to 'library/std/src/sys_common')
| -rw-r--r-- | library/std/src/sys_common/thread_local_dtor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys_common/thread_local_dtor.rs b/library/std/src/sys_common/thread_local_dtor.rs index 1d13a7171b0..844946eda03 100644 --- a/library/std/src/sys_common/thread_local_dtor.rs +++ b/library/std/src/sys_common/thread_local_dtor.rs @@ -30,7 +30,7 @@ pub unsafe fn register_dtor_fallback(t: *mut u8, dtor: unsafe extern "C" fn(*mut static DTORS: StaticKey = StaticKey::new(Some(run_dtors)); type List = Vec<(*mut u8, unsafe extern "C" fn(*mut u8))>; if DTORS.get().is_null() { - let v: Box<List> = box Vec::new(); + let v: Box<List> = Box::new(Vec::new()); DTORS.set(Box::into_raw(v) as *mut u8); } let list: &mut List = &mut *(DTORS.get() as *mut List); |
