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)) } }