aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-01-27 03:43:55 +0300
committerValentin Popov <info@valentineus.link>2019-01-27 03:43:55 +0300
commitb5e0b43447e1f3cda93902a2d93e96be131fcdda (patch)
tree01cad4a5ced55c46c30a69a801cbd25f884ed0d0 /src
parent8ecacc836a621c90c061348d93dc6cf9908614f8 (diff)
downloadbbb2json-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')
-rw-r--r--src/main.rs4
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),
};
}