From 1be1c0735dcff86bac065f0963df17c0f2f0dad3 Mon Sep 17 00:00:00 2001 From: Adam Piasecki Date: Mon, 9 Sep 2024 21:11:21 +0100 Subject: [PATCH] src/io/hash: update deprecated funcion, nix See: https://github.com/coreos/coreos-installer/pull/1476 Ref: https://github.com/coreos/coreos-installer/pull/1476#issuecomment-2271526583 --- src/io/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/hash.rs b/src/io/hash.rs index cb0966129..12c497075 100644 --- a/src/io/hash.rs +++ b/src/io/hash.rs @@ -158,7 +158,7 @@ impl Sha256Digest { if unsafe { libc::posix_fadvise(f.as_raw_fd(), 0, 0, libc::POSIX_FADV_SEQUENTIAL) } < 0 { eprintln!( "posix_fadvise(SEQUENTIAL) failed (errno {}) -- ignoring...", - nix::errno::errno() + errno::errno() ); }