diff options
author | Valentin Popov <info@valentineus.link> | 2019-01-27 03:43:55 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2019-01-27 03:43:55 +0300 |
commit | b5e0b43447e1f3cda93902a2d93e96be131fcdda (patch) | |
tree | 01cad4a5ced55c46c30a69a801cbd25f884ed0d0 /src/main.rs | |
parent | 8ecacc836a621c90c061348d93dc6cf9908614f8 (diff) | |
download | bbb2json-b5e0b43447e1f3cda93902a2d93e96be131fcdda.tar.xz bbb2json-b5e0b43447e1f3cda93902a2d93e96be131fcdda.zip |
Sun, 27 Jan 2019 04:43:55 +0400
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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), }; } |