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());