docs(zeroize): fix docstring warnings

Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Paul Spooren
2024-11-06 17:22:03 +01:00
parent 8806494899
commit 1209d68718

View File

@@ -1,6 +1,8 @@
use zeroize::Zeroize; use zeroize::Zeroize;
/// Extension trait providing a method for zeroizing a value and returning it
pub trait ZeroizedExt: Zeroize + Sized { pub trait ZeroizedExt: Zeroize + Sized {
/// Zeroizes the value in place and returns self
fn zeroized(mut self) -> Self { fn zeroized(mut self) -> Self {
self.zeroize(); self.zeroize();
self self