From b5e0b43447e1f3cda93902a2d93e96be131fcdda Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 27 Jan 2019 04:43:55 +0400 Subject: Sun, 27 Jan 2019 04:43:55 +0400 Signed-off-by: Valentin Popov --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index d6254a9..6135a15 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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), }; } -- cgit v1.2.3