diff --git a/runtime/ops/os/sys_info.rs b/runtime/ops/os/sys_info.rs index 3e6cd4a518..4515d8148a 100644 --- a/runtime/ops/os/sys_info.rs +++ b/runtime/ops/os/sys_info.rs @@ -229,7 +229,7 @@ pub fn mem_info() -> Option { mem_info.swap_free = xs.xsu_avail; let mut count: u32 = libc::HOST_VM_INFO64_COUNT as _; - let mut stat = unsafe { std::mem::zeroed::() }; + let mut stat = std::mem::zeroed::(); if libc::host_statistics64( // TODO(@littledivy): Put this in a once_cell. libc::mach_host_self(),