From e196d392b2f02ee51a1bcb1377ce064cc29d32c7 Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Thu, 26 Sep 2024 12:04:20 -0700 Subject: [PATCH] chore: upgrade nix --- Cargo.toml | 2 +- src/error.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 75f9e80..9dfa748 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ serde_derive = "1" serde = "1" serde_json = "1" uuid = { version = "~0.8", features = ["serde"] } -nix = "0.21" +nix = "0.29" tracing = "0.1" [features] diff --git a/src/error.rs b/src/error.rs index cc3ad7d..9c72a2f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -139,6 +139,6 @@ impl From for RadosError { } impl From for RadosError { fn from(err: i32) -> RadosError { - RadosError::ApiError(nix::errno::Errno::from_i32(-err)) + RadosError::ApiError(nix::errno::Errno::from_raw(-err)) } }