1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore: fix clippy warning (#16512)

This commit is contained in:
Bartek Iwańczuk 2022-11-02 15:40:11 +01:00 committed by GitHub
parent ab7e80bde4
commit 68da943498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),