mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix the errors
This commit is contained in:
parent
7ba2737a13
commit
788006f427
1 changed files with 7 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue