diff --git a/Cargo.toml b/Cargo.toml index 490460f4f..344d39c13 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -143,7 +143,7 @@ indicatif = "0.18" itertools = { version = "0.14" } jobserver = "0.1" ktx2 = "0.5" -libc = { version = "0.2.172", default-features = false } +libc = { version = "0.2.183", default-features = false } # See https://github.com/rust-fuzz/libfuzzer/issues/126 libfuzzer-sys = ">0.4.0,<=0.4.7" libloading = "0.8" diff --git a/wgpu-hal/src/vulkan/adapter.rs b/wgpu-hal/src/vulkan/adapter.rs index e6c3f7735..92505dfca 100644 --- a/wgpu-hal/src/vulkan/adapter.rs +++ b/wgpu-hal/src/vulkan/adapter.rs @@ -3094,10 +3094,7 @@ impl crate::Adapter for super::Adapter { // on mac, so this is fine. #[cfg(unix)] { - let mut timespec = libc::timespec { - tv_sec: 0, - tv_nsec: 0, - }; + let mut timespec = libc::timespec::default(); unsafe { libc::clock_gettime(libc::CLOCK_MONOTONIC, &mut timespec); }