mirror of
https://github.com/denoland/deno
synced 2024-08-25 02:57:22 +00:00
chore: fix clippy warning (#16512)
This commit is contained in:
parent
ab7e80bde4
commit
68da943498
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue