From f4a9acabc26caa0771b7e51ce1bcdc082b54e696 Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Sun, 24 Mar 2024 14:22:15 +0000 Subject: [PATCH] fix: removing `Secret::zeroizing` method This was introduced by mistake in https://github.com/eopb/redact/pull/58. I don't want to commit to keeping this API. It makes zeroizing too prominent in the API docs --- src/zeroize.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/zeroize.rs b/src/zeroize.rs index 51d3f1b..b58d941 100644 --- a/src/zeroize.rs +++ b/src/zeroize.rs @@ -15,9 +15,3 @@ impl TryZeroize for Secret { } impl ZeroizeOnDrop for Secret {} - -impl Secret { - pub fn zeroizing(self) -> zeroize::Zeroizing { - zeroize::Zeroizing::new(self) - } -}