mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 06:23:08 -08:00
docs(zeroize): fix docstring warnings
Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user