From 299a1c74b28ac41015bc436de6d37b5ef5d59b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Thu, 23 Jan 2025 00:22:05 +0300 Subject: [PATCH] refactor(lint): apply clippy suggestions --- git-cliff/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index 415b94cf01..400b968aa7 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -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; @@ -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()); }