From 8fb253f72c8855b8cfa2044f8e80744b77434f29 Mon Sep 17 00:00:00 2001 From: Martin Stefcek Date: Fri, 13 Dec 2024 10:20:50 +0100 Subject: [PATCH] fix former issues --- atoma-confidential/src/key_management.rs | 1 + atoma-service/src/tests.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/atoma-confidential/src/key_management.rs b/atoma-confidential/src/key_management.rs index c1732617..3eec2c5f 100644 --- a/atoma-confidential/src/key_management.rs +++ b/atoma-confidential/src/key_management.rs @@ -212,6 +212,7 @@ impl X25519KeyPairManager { /// * `Err(KeyManagementError)` if the write failed pub fn write_private_key_to_file(&self) -> Result<()> { use std::fs::{self, create_dir_all}; + #[cfg(unix)] use std::os::unix::fs::PermissionsExt; // Unix-specific permissions let path = Self::get_key_file_path(); diff --git a/atoma-service/src/tests.rs b/atoma-service/src/tests.rs index 4f401206..564235ac 100644 --- a/atoma-service/src/tests.rs +++ b/atoma-service/src/tests.rs @@ -1249,7 +1249,7 @@ mod middleware { let req = Request::builder() .method("POST") .uri("/") - .header(atoma_utils::constants::SALT, STANDARD.encode(&salt)) + .header(atoma_utils::constants::SALT, STANDARD.encode(salt)) .header( atoma_utils::constants::NONCE, STANDARD.encode(nonce.as_slice()),