Commit b6295ae87826289d7137a6db7bff3bb4060b85f5

constantoine 2022-08-09T11:13:55

Fix doc tests Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>

diff --git a/src/secret.rs b/src/secret.rs
index 01526dc..68ba340 100644
--- a/src/secret.rs
+++ b/src/secret.rs
@@ -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();