Skip to content

Commit c81b741

Browse files
CoAlloc: Minor fix (removed the use of 'box' keyword).
1 parent 60a5074 commit c81b741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/thread_local_dtor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub unsafe fn register_dtor(t: *mut u8, dtor: unsafe extern "C" fn(*mut u8)) {
7070
#[thread_local]
7171
static DTORS: Cell<*mut List> = Cell::new(ptr::null_mut());
7272
if DTORS.get().is_null() {
73-
let v: Box<List> = box Vec::new();
73+
let v: Box<List> = Box::new(Vec::new());
7474
DTORS.set(Box::into_raw(v));
7575
}
7676

0 commit comments

Comments
 (0)