From 788006f4277e6baab6e60fd47932dd8a1c65d720 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Sat, 21 Sep 2019 05:05:39 +0600 Subject: [PATCH] Fix the errors --- src/types/encrypted_passport_element.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/types/encrypted_passport_element.rs b/src/types/encrypted_passport_element.rs index 54bcbbc4..95503532 100644 --- a/src/types/encrypted_passport_element.rs +++ b/src/types/encrypted_passport_element.rs @@ -36,7 +36,9 @@ pub enum ElementType { Email, } +#[cfg(test)] mod tests { + use super::super::{ElementType, EncryptedPassportElement, PassportFile}; #[test] fn must_serialize_encrypted_passport_element_to_json() { // given @@ -61,7 +63,11 @@ mod tests { phone_number: "1313".to_string(), email: "someemail".to_string(), files: None, - front_size: Some(create_passport_file()), + front_size: Some(PassportFile { + file_id: "someId".to_string(), + file_size: 13, + file_date: 13, + }), reverse_side: None, selfie: None, translation: None,