Skip to content

Commit cf60355

Browse files
committed
Revert "clearer code" that broke single-page version
I actually originally wrote this (`.count()` consumes the iterator), and later forgot about it. `next()` only discards one line. Duh.
1 parent 71389bd commit cf60355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ fn gen_single_page(path: &mut PathBuf, base_url: &Url) -> Result<()> {
315315
line.trim_start() != "</script>"
316316
})
317317
});
318-
if auto_printer_script_lines.next().is_none() {
318+
if auto_printer_script_lines.count() == 0 {
319319
panic!("Warning: unterminated auto-printer script tag??");
320320
}
321321
}

0 commit comments

Comments
 (0)