try to satisfy msrv?

This commit is contained in:
mark 2020-03-20 21:40:40 -05:00
parent 2d63286c63
commit 91e3aa4b55
1 changed files with 6 additions and 4 deletions

View File

@ -374,11 +374,13 @@ impl<'a> SummaryParser<'a> {
loop { loop {
match self.next_event() { match self.next_event() {
Some(ev @ Event::Start(Tag::Paragraph)) if !first => { Some(ev @ Event::Start(Tag::Paragraph)) => {
if !first {
// we're starting the suffix chapters // we're starting the suffix chapters
self.back(ev); self.back(ev);
break; break;
} }
}
// The expectation is that pulldown cmark will terminate a paragraph before a new // The expectation is that pulldown cmark will terminate a paragraph before a new
// heading, so we can always count on this to return without skipping headings. // heading, so we can always count on this to return without skipping headings.
Some(ev @ Event::Start(Tag::Heading(1))) => { Some(ev @ Event::Start(Tag::Heading(1))) => {