From 781ed204c2c763686fba33f885fa94195f98d4eb Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Fri, 18 Sep 2026 15:43:12 +0200 Subject: [PATCH] clippy: write the changelog body loop as while let (rust 1.98) --- src/debian/changelog.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/debian/changelog.rs b/src/debian/changelog.rs index 5efff47..4480aed 100644 --- a/src/debian/changelog.rs +++ b/src/debian/changelog.rs @@ -151,10 +151,7 @@ fn parse_one_entry( // --- Body until trailer line ` -- Name Date` let mut body_lines: Vec = Vec::new(); let mut trailer: Option = None; - loop { - let Some(line) = lines.peek().copied() else { - break; - }; + while let Some(line) = lines.peek().copied() { let line = line.trim_end(); if line.starts_with(" -- ") { trailer = lines.next().map(|l| l.trim_end().to_string());