Skip to content

Commit

Permalink
fix: removing Secret::zeroizing method
Browse files Browse the repository at this point in the history
This was introduced by mistake in #58. I don't want to commit to keeping this API. It makes zeroizing too prominent in the API docs
  • Loading branch information
eopb committed Mar 24, 2024
1 parent 6f2556f commit f4a9aca
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/zeroize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,3 @@ impl<T: TryZeroize> TryZeroize for Secret<T> {
}

impl<T: ZeroizeOnDrop> ZeroizeOnDrop for Secret<T> {}

impl<T: Zeroize> Secret<T> {
pub fn zeroizing(self) -> zeroize::Zeroizing<Self> {
zeroize::Zeroizing::new(self)
}
}

0 comments on commit f4a9aca

Please sign in to comment.