File tree 2 files changed +15
-15
lines changed
2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -198,22 +198,22 @@ pub fn filter_commit_by_search(
198
198
. flatten ( )
199
199
. is_some_and ( |diff| filter. match_diff ( & diff) ) ;
200
200
201
- let authors_match = filter
201
+ let authors_match = if filter
202
202
. options
203
203
. fields
204
204
. contains ( SearchFields :: AUTHORS )
205
- . then ( || {
206
- let author =
207
- get_author_of_commit ( & commit , & mailmap ) ;
208
- [ author . email ( ) , author . name ( ) ] . iter ( ) . any (
209
- | opt_haystack| {
210
- opt_haystack . is_some_and ( | haystack| {
211
- filter . match_text ( haystack )
212
- } )
213
- } ,
214
- )
215
- } )
216
- . unwrap_or_default ( ) ;
205
+ {
206
+ let author = get_author_of_commit ( & commit , & mailmap ) ;
207
+ [ author . email ( ) , author . name ( ) ] . iter ( ) . any (
208
+ |opt_haystack| {
209
+ opt_haystack. is_some_and ( |haystack | {
210
+ filter . match_text ( haystack)
211
+ } )
212
+ } ,
213
+ )
214
+ } else {
215
+ false
216
+ } ;
217
217
218
218
Ok ( msg_summary_match
219
219
|| msg_body_match
Original file line number Diff line number Diff line change @@ -44,6 +44,6 @@ fn main() {
44
44
format ! ( "nightly {} ({})" , build_date, get_git_hash( ) )
45
45
} ;
46
46
47
- println ! ( "cargo:warning=buildname '{}'" , build_name ) ;
48
- println ! ( "cargo:rustc-env=GITUI_BUILD_NAME={}" , build_name ) ;
47
+ println ! ( "cargo:warning=buildname '{build_name }'" ) ;
48
+ println ! ( "cargo:rustc-env=GITUI_BUILD_NAME={build_name}" ) ;
49
49
}
You can’t perform that action at this time.
0 commit comments