Skip to content

Commit

Permalink
Fix clippy warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
awaitlink committed Nov 5, 2023
1 parent df0dc53 commit eab1ec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/markdown/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<'a> Commit<'a> {
.map(|line| utils::escape_html(&line))
.collect();

let message = match message_lines.get(0) {
let message = match message_lines.first() {
Some(line) => line,
None => "*Empty commit message*",
};
Expand Down
4 changes: 3 additions & 1 deletion src/markdown/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ Gathered from [signalapp/Signal-{platform}]({comparison_url})

#[cfg(test)]
mod tests {
#![allow(clippy::too_many_arguments)]

use pretty_assertions::assert_str_eq;
use test_case::test_case;

Expand Down Expand Up @@ -405,7 +407,7 @@ Localization changes for the release are the same, as this is the first build of
#[test_case(Android, "v1.2.3", "v1.2.4", None,
std::iter::repeat(Commit::new(Android, "Test commit.", "abcdef"))
.take(MAX_COMMITS_WITHOUT_DETAILS_TAG)
.chain(vec![Commit::new(Android, "Bump version to 1.2.4", "abc123")].iter().cloned())
.chain([Commit::new(Android, "Bump version to 1.2.4", "abc123")].iter().cloned())
.collect(),
MAX_COMMITS_WITHOUT_DETAILS_TAG + 1, None, "## New Version: 1.2.4
(Not Yet) Available via [Firebase App Distribution](/t/17538)
Expand Down

0 comments on commit eab1ec0

Please sign in to comment.