try to satisfy msrv?
This commit is contained in:
parent
2d63286c63
commit
91e3aa4b55
|
@ -374,10 +374,12 @@ 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)) => {
|
||||||
// we're starting the suffix chapters
|
if !first {
|
||||||
self.back(ev);
|
// we're starting the suffix chapters
|
||||||
break;
|
self.back(ev);
|
||||||
|
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.
|
||||||
|
|
Loading…
Reference in New Issue