1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
// use serde::de::DeserializeOwned;
// use std::fs::File;
// use std::io::Read;
// use failure::Error;

// #[allow(dead_code)]
// fn read_text_file<C: DeserializeOwned>
// (filename: &str) -> Result<C, Error>{
//     let mut file = File::open(filename)?;
//     let mut data = String::new();
//     file.read_to_string(&mut data)?;
//     // TODO: add own parser
//     let parsed_object: C = serde_xml_rs::from_str(&data)?;
//     Ok(parsed_object)
// }

/// This function is not implemented!
pub fn parse_world_history(filename: &str) {
    println!("The World History parser is not created yet.");
    println!("File did not get parsed: {}", filename);
    //read_text_file( filename ).unwrap()
}