Fix doc tests

Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
This commit is contained in:
constantoine 2022-08-09 11:13:55 +02:00
parent 7a3967f9a9
commit b6295ae878
No known key found for this signature in database
GPG Key ID: 0FA097951CF65367
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@
//! ```
//! - Create a TOTP from a Generated Secret
//! ```
//! # #[cfg(feature = "gen_secret")] {
//! # #[cfg(all(feature = "gen_secret", not(feature = "otpauth")))] {
//! use totp_rs::{Secret, TOTP, Algorithm};
//!
//! let secret_b32 = Secret::default();
@ -61,7 +61,7 @@
//! ```
//! - Create a TOTP from a Generated Secret 2
//! ```
//! # #[cfg(feature = "gen_secret")] {
//! # #[cfg(all(feature = "gen_secret", not(feature = "otpauth")))] {
//! use totp_rs::{Secret, TOTP, Algorithm};
//!
//! let secret_b32 = Secret::generate_secret();