File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Expand file tree Collapse file tree 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(
198198 . flatten ( )
199199 . is_some_and ( |diff| filter. match_diff ( & diff) ) ;
200200
201- let authors_match = filter
201+ let authors_match = if filter
202202 . options
203203 . fields
204204 . 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+ } ;
217217
218218 Ok ( msg_summary_match
219219 || msg_body_match
Original file line number Diff line number Diff line change @@ -44,6 +44,6 @@ fn main() {
4444 format ! ( "nightly {} ({})" , build_date, get_git_hash( ) )
4545 } ;
4646
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}" ) ;
4949}
You can’t perform that action at this time.
0 commit comments