From 8ac15fafee9b19087b7ee038e637de164d82fc48 Mon Sep 17 00:00:00 2001 From: Eyob Date: Sat, 14 Sep 2024 15:46:43 +0300 Subject: [PATCH] pub from_vec --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8ae1fac..5495307 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,8 +54,8 @@ impl FromStr for SecretString { pub type SecretVec = SecretBox>; impl SecretVec { - #[allow(dead_code)] - fn from_vec(new_vec: Vec) -> Self { + /// Generate SecretVec from vec + pub fn from_vec(new_vec: Vec) -> Self { SecretBox::new(Box::new(new_vec)) } }