Sun, 27 Jan 2019 04:43:55 +0400

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2019-01-27 04:43:55 +04:00
parent 8ecacc836a
commit b5e0b43447
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -24,8 +24,8 @@ fn main() {
true => {
let file: File = File::open(path).unwrap();
let data: ParserResult = parser(BufReader::new(file));
println!("{:#?}", serde_json::to_string_pretty(&data));
println!("{}", serde_json::to_string_pretty(&data).unwrap());
}
_ => panic!("File does not exist or is not available."),
_ => panic!("File {:#?} does not exist or is not available.", path),
};
}