Skip to content

Commit

Permalink
src/io/hash: update deprecated funcion, nix
Browse files Browse the repository at this point in the history
  • Loading branch information
c4rt0 committed Sep 9, 2024
1 parent b3017bd commit 1be1c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}

Expand Down

0 comments on commit 1be1c07

Please sign in to comment.