Skip to content

Commit

Permalink
refactor(lint): apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jan 22, 2025
1 parent 37598c2 commit 299a1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! A highly customizable changelog generator ⛰️
#![doc(
html_logo_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff.png",
html_favicon_url = "https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/favicon/favicon.ico"
)]
//! A highly customizable changelog generator ⛰️
/// Command-line argument parser.
pub mod args;
Expand Down Expand Up @@ -358,7 +358,7 @@ fn process_repository<'a>(
if let Some(latest_release) = releases
.iter_mut()
.filter(|release| !release.commits.is_empty())
.last()
.next_back()
{
latest_release.message = Some(message.to_owned());
}
Expand Down

0 comments on commit 299a1c7

Please sign in to comment.