Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Mar 28, 2023
1 parent 249fee7 commit e2f76cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use std::fs::File;
use std::path::PathBuf;

use anyhow::Error;
use clap::Parser;
use serde::Serialize;
use anyhow::Error;

/// Compare old and new schema, and print differences
#[derive(Parser)]
Expand All @@ -19,8 +19,7 @@ struct Args {
struct Change {
#[serde(flatten)]
inner: json_schema_diff::Change,
is_breaking: bool

is_breaking: bool,
}

fn main() -> Result<(), Error> {
Expand All @@ -33,7 +32,10 @@ fn main() -> Result<(), Error> {

for change in changes {
let is_breaking = change.change.is_breaking();
let change = Change { inner: change, is_breaking };
let change = Change {
inner: change,
is_breaking,
};
println!("{}", serde_json::to_string(&change)?);
}
Ok(())
Expand Down

0 comments on commit e2f76cf

Please sign in to comment.