From d352d10a1ae52d35a1f58ba3e9291527571f6c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?VIAL=20S=C3=A9bastien?= Date: Sun, 19 Nov 2023 22:07:31 +0100 Subject: [PATCH] fix(doc): test in doc --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c533124..ecd63f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,8 +25,11 @@ //! //! ```rust //! use tag_password::Password; +//! use argon2::password_hash::SaltString; +//! use rand_core::OsRng; //! //! // Create a new plain text password +//! let salt = SaltString::generate(&mut OsRng); //! let plain_password = Password::new("my_password"); //! // Hash the plain text password using Argon2 //! let hashed_password = plain_password