Skip to content

Commit

Permalink
hash: remove deprecated funcion and add updated one
Browse files Browse the repository at this point in the history
Using Errno::last_raw() instead nix::errno::errno
  • Loading branch information
yasminvalim committed Feb 13, 2025
1 parent 8c5d50d commit 5965de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ hex = "^0.4"
ignition-config = ">= 0.3, < 0.6"
lazy_static = "^1.4"
libc = "^0.2"
nix = { version = ">= 0.24, < 0.30", "default_features" = false, "features" = [ "dir", "ioctl", "mount", "process", "sched", "signal", "user"] }
nix = { version = ">= 0.29, < 0.30", "default_features" = false, "features" = [ "dir", "ioctl", "mount", "process", "sched", "signal", "user"] }
nmstate = { version = ">= 2.2.3, < 3", default-features = false, features = ["gen_conf"] }
openssl = "^0.10"
pipe = ">= 0.3, < 0.5"
Expand Down
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()
nix::errno::Errno::last_raw()
);
}

Expand Down

0 comments on commit 5965de1

Please sign in to comment.