Commit eb9b04433f903818e49a86544ebca4d6a36c1a07

Steven Salaun 2022-08-08T14:17:23

fix build for serde_support feature

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/rfc.rs b/src/rfc.rs
index d55bc74..7d8c319 100644
--- a/src/rfc.rs
+++ b/src/rfc.rs
@@ -2,6 +2,9 @@ use crate::Algorithm;
 use crate::TotpUrlError;
 use crate::TOTP;
 
+#[cfg(feature = "serde_support")]
+use serde::{Deserialize, Serialize};
+
 /// Data is not compliant to [rfc-6238](https://tools.ietf.org/html/rfc6238)
 #[derive(Debug, Eq, PartialEq)]
 pub enum Rfc6238Error {