File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11use std:: fs:: File ;
22use std:: path:: PathBuf ;
33
4+ use anyhow:: Error ;
45use clap:: Parser ;
56use serde:: Serialize ;
6- use anyhow:: Error ;
77
88/// Compare old and new schema, and print differences
99#[ derive( Parser ) ]
@@ -19,8 +19,7 @@ struct Args {
1919struct Change {
2020 #[ serde( flatten) ]
2121 inner : json_schema_diff:: Change ,
22- is_breaking : bool
23-
22+ is_breaking : bool ,
2423}
2524
2625fn main ( ) -> Result < ( ) , Error > {
@@ -33,7 +32,10 @@ fn main() -> Result<(), Error> {
3332
3433 for change in changes {
3534 let is_breaking = change. change . is_breaking ( ) ;
36- let change = Change { inner : change, is_breaking } ;
35+ let change = Change {
36+ inner : change,
37+ is_breaking,
38+ } ;
3739 println ! ( "{}" , serde_json:: to_string( & change) ?) ;
3840 }
3941 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments