clippy: write the changelog body loop as while let (rust 1.98)
CI / build (push) Successful in 2m53s
CI / test (push) Skipped
CI / snap (push) Failing after 9s

This commit is contained in:
2026-09-18 15:43:12 +02:00
parent 0235ec6457
commit 781ed204c2
+1 -4
View File
@@ -151,10 +151,7 @@ fn parse_one_entry(
// --- Body until trailer line ` -- Name <email> Date`
let mut body_lines: Vec<String> = Vec::new();
let mut trailer: Option<String> = 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());