Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'xtask/src/release.rs')
-rw-r--r--xtask/src/release.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/release.rs b/xtask/src/release.rs
index 8e56ce439c..9f65c40295 100644
--- a/xtask/src/release.rs
+++ b/xtask/src/release.rs
@@ -50,7 +50,7 @@ impl flags::Release {
.unwrap_or_default();
let tags = cmd!(sh, "git tag --list").read()?;
- let prev_tag = tags.lines().filter(|line| is_release_tag(line)).last().unwrap();
+ let prev_tag = tags.lines().filter(|line| is_release_tag(line)).next_back().unwrap();
let contents = changelog::get_changelog(sh, changelog_n, &commit, prev_tag, &today)?;
let path = changelog_dir.join(format!("{today}-changelog-{changelog_n}.adoc"));