Apply clippy::manual_while_let_some

This commit is contained in:
Eric Huss 2023-05-13 09:50:32 -07:00
parent 0ef3bb1cc6
commit d8f171a996
1 changed files with 1 additions and 3 deletions

View File

@ -39,9 +39,7 @@ fn create_missing(src_dir: &Path, summary: &Summary) -> Result<()> {
.chain(summary.suffix_chapters.iter())
.collect();
while !items.is_empty() {
let next = items.pop().expect("already checked");
while let Some(next) = items.pop() {
if let SummaryItem::Link(ref link) = *next {
if let Some(ref location) = link.location {
let filename = src_dir.join(location);