Fix doc tests
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
This commit is contained in:
parent
7a3967f9a9
commit
b6295ae878
|
@ -44,7 +44,7 @@
|
||||||
//! ```
|
//! ```
|
||||||
//! - Create a TOTP from a Generated Secret
|
//! - 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};
|
//! use totp_rs::{Secret, TOTP, Algorithm};
|
||||||
//!
|
//!
|
||||||
//! let secret_b32 = Secret::default();
|
//! let secret_b32 = Secret::default();
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
//! ```
|
//! ```
|
||||||
//! - Create a TOTP from a Generated Secret 2
|
//! - 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};
|
//! use totp_rs::{Secret, TOTP, Algorithm};
|
||||||
//!
|
//!
|
||||||
//! let secret_b32 = Secret::generate_secret();
|
//! let secret_b32 = Secret::generate_secret();
|
||||||
|
|
Loading…
Reference in New Issue