From 03e2e001221ad403f56609086662ba094cd2e93a 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..de3a6f510 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() + nix::errno() ); }