Skip to content

Commit 3453e46

Browse files
committed
fix nightly
1 parent 706cdf9 commit 3453e46

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

asyncgit/src/sync/commit_filter.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)