Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if !args.dont_pretty_print {
- // Pretty print the final string to the specified file:
- fs::write(&args.target_file, json::stringify_pretty(target_diff, 4)).unwrap_or_else(
- |err| {
- panic!(
- "There was a problem when writing to the final file {}, {}",
- &args.target_file, err
- )
- },
- );
- } else {
- fs::write(&args.target_file, json::stringify(target_diff)).unwrap_or_else(|err| {
- panic!(
- "There was a problem when writing to the final file {}, {}",
- &args.target_file, err
- )
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement