Sun, 27 Jan 2019 04:43:55 +0400
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
8ecacc836a
commit
b5e0b43447
@ -24,8 +24,8 @@ fn main() {
|
|||||||
true => {
|
true => {
|
||||||
let file: File = File::open(path).unwrap();
|
let file: File = File::open(path).unwrap();
|
||||||
let data: ParserResult = parser(BufReader::new(file));
|
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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user