summaryrefslogtreecommitdiff
path: root/runtime/ops/os/sys_info.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-02 15:40:11 +0100
committerGitHub <noreply@github.com>2022-11-02 15:40:11 +0100
commit68da943498b5f88e969eee0241348911201b662a (patch)
tree310f5177009e6f81f3d82904227eccf9e4fcd95e /runtime/ops/os/sys_info.rs
parentab7e80bde4513984046c093ed5eeb8c0640c4fe0 (diff)
chore: fix clippy warning (#16512)
Diffstat (limited to 'runtime/ops/os/sys_info.rs')
-rw-r--r--runtime/ops/os/sys_info.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/os/sys_info.rs b/runtime/ops/os/sys_info.rs
index 3e6cd4a51..4515d8148 100644
--- a/runtime/ops/os/sys_info.rs
+++ b/runtime/ops/os/sys_info.rs
@@ -229,7 +229,7 @@ pub fn mem_info() -> Option<MemInfo> {
mem_info.swap_free = xs.xsu_avail;
let mut count: u32 = libc::HOST_VM_INFO64_COUNT as _;
- let mut stat = unsafe { std::mem::zeroed::<libc::vm_statistics64>() };
+ let mut stat = std::mem::zeroed::<libc::vm_statistics64>();
if libc::host_statistics64(
// TODO(@littledivy): Put this in a once_cell.
libc::mach_host_self(),