File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn is_modified(repo: &git2::Repository, output_path: &str) -> anyhow::Result<boo
1313 match repo. status_file ( Path :: new ( output_path) ) {
1414 Ok ( status) => Ok ( status. is_wt_modified ( ) ) ,
1515 Err ( e) if e. code ( ) == git2:: ErrorCode :: NotFound => Ok ( false ) ,
16- Err ( e) => Err ( e) . with_context ( || format ! ( "git file status failed for {}" , output_path ) ) ,
16+ Err ( e) => Err ( e) . with_context ( || format ! ( "git file status failed for {output_path}" ) ) ,
1717 }
1818}
1919
@@ -88,7 +88,7 @@ fn main() -> anyhow::Result<()> {
8888 let mut output_differences = 0 ;
8989 for output_path in output_paths {
9090 if !check {
91- println ! ( "generating {}" , output_path ) ;
91+ println ! ( "generating {output_path}" ) ;
9292 }
9393
9494 let context = output_pairs. get ( output_path) . unwrap ( ) ;
@@ -128,7 +128,7 @@ fn main() -> anyhow::Result<()> {
128128 }
129129
130130 if stdout {
131- print ! ( "{}" , output_str ) ;
131+ print ! ( "{output_str}" ) ;
132132 continue ;
133133 }
134134
You can’t perform that action at this time.
0 commit comments