fix build for serde_support feature

This commit is contained in:
Steven Salaun 2022-08-08 14:17:23 +02:00
parent fcfebe1417
commit eb9b04433f
1 changed files with 3 additions and 0 deletions

View File

@ -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 {