From b3ed4c023da3603dcfc6e104c24a90511fc95b57 Mon Sep 17 00:00:00 2001 From: Eyob <103565328+Eyob94@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:34:19 +0300 Subject: [PATCH] `from_vec` to `from` (#14) --- CHANGELOG.md | 5 +++++ Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f15566..176c47b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +### 0.1.10 - 2024-09-14 + +- [#14] (https://github.com/Eyob94/shush-rs/pull/11) Breaking changes + - Rename `from_vec` to `from` + ### 0.1.9 - 2024-09-13 - [#13] (https://github.com/Eyob94/shush-rs/pull/11) Public interface diff --git a/Cargo.lock b/Cargo.lock index 9fb8e12..f81518c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" [[package]] name = "shush-rs" -version = "0.1.9" +version = "0.1.10" dependencies = [ "errno", "libc", diff --git a/Cargo.toml b/Cargo.toml index 25c81e6..1802574 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shush-rs" -version = "0.1.9" +version = "0.1.10" edition = "2021" license = "MIT OR Apache-2.0" description = "A Rust crate designed to manage sensitive data securely by leveraging memory protection mechanisms." diff --git a/src/lib.rs b/src/lib.rs index 5495307..9f2c8eb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,7 +55,7 @@ pub type SecretVec = SecretBox>; impl SecretVec { /// Generate SecretVec from vec - pub fn from_vec(new_vec: Vec) -> Self { + pub fn from(new_vec: Vec) -> Self { SecretBox::new(Box::new(new_vec)) } }