From 68da943498b5f88e969eee0241348911201b662a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 2 Nov 2022 15:40:11 +0100 Subject: [PATCH] chore: fix clippy warning (#16512) --- runtime/ops/os/sys_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),