@@ -31,29 +31,29 @@ fn main() {
31
31
let start = Instant :: now ( ) ;
32
32
let changed_files = get_changed_files ( ) ;
33
33
let duration = start. elapsed ( ) ;
34
- println ! ( "Getting changed files done in: {:?}" , duration ) ;
34
+ println ! ( "Getting changed files done in: {duration :?}" ) ;
35
35
36
- println ! ( "Changed files: {:?}" , changed_files ) ;
36
+ println ! ( "Changed files: {changed_files :?}" ) ;
37
37
38
38
let start = Instant :: now ( ) ;
39
39
let filtered_files = filter_files ( & changed_files, & include_patterns_filters, & exclude_patterns_filters) ;
40
40
let duration = start. elapsed ( ) ;
41
- println ! ( "Filtering files done in: {:?}" , duration ) ;
41
+ println ! ( "Filtering files done in: {duration :?}" ) ;
42
42
43
43
let count = get_count ( & filtered_files) ;
44
44
45
- println ! ( "Filtered files: {:?}" , filtered_files ) ;
46
- println ! ( "Count: {}" , count ) ;
45
+ println ! ( "Filtered files: {filtered_files :?}" ) ;
46
+ println ! ( "Count: {count}" ) ;
47
47
48
48
Command :: new ( "sh" )
49
49
. arg ( "-c" )
50
- . arg ( format ! ( "echo \" DIFF_FILES={:?}\" >> $GITHUB_OUTPUT" , filtered_files ) )
50
+ . arg ( format ! ( "echo \" DIFF_FILES={filtered_files :?}\" >> $GITHUB_OUTPUT" ) )
51
51
. output ( )
52
52
. expect ( "Failed to execute DIFF_FILES command" ) ;
53
53
54
54
Command :: new ( "sh" )
55
55
. arg ( "-c" )
56
- . arg ( format ! ( "echo \" DIFF_COUNT={}\" >> $GITHUB_OUTPUT" , count ) )
56
+ . arg ( format ! ( "echo \" DIFF_COUNT={count }\" >> $GITHUB_OUTPUT" ) )
57
57
. output ( )
58
58
. expect ( "Failed to execute DIFF_COUNT command" ) ;
59
59
}
@@ -104,11 +104,11 @@ fn get_changed_files() -> Vec<String> {
104
104
105
105
Command :: new ( "sh" )
106
106
. arg ( "-c" )
107
- . arg ( format ! ( "git fetch origin {}" , base_ref_env ) )
107
+ . arg ( format ! ( "git fetch origin {base_ref_env}" ) )
108
108
. output ( )
109
109
. expect ( "Failed to execute fetch branch command" ) ;
110
110
111
- let base_ref_string = format ! ( "refs/remotes/origin/{}" , base_ref_env ) ;
111
+ let base_ref_string = format ! ( "refs/remotes/origin/{base_ref_env}" ) ;
112
112
let base_ref = repository. find_reference ( & base_ref_string) . expect ( "Failed to find default branch" ) ;
113
113
let base_commit = base_ref. peel_to_commit ( ) . expect ( "Failed to peel default branch to commit" ) ;
114
114
0 commit comments