This commit is contained in:
Edward Shen 2021-02-27 00:10:43 -05:00
parent 16496d91a1
commit bac41a802a
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -488,6 +488,8 @@ impl<'a> Parser<'a> {
/// Consumes the parser to produce an iterator of Events.
pub fn into_iter(self) -> impl Iterator<Item = Event<'a>> + FusedIterator {
// Can't impl IntoIter without allocating.and using a generic associated type
// TODO: try harder?
let section_iter = self
.sections
.into_iter()