From bac41a802af45db1a33083507c6b33bb62ea0bc1 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Sat, 27 Feb 2021 00:10:43 -0500 Subject: [PATCH] add todo --- src/parser.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parser.rs b/src/parser.rs index 6d5e34c..4a9ac7b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -488,6 +488,8 @@ impl<'a> Parser<'a> { /// Consumes the parser to produce an iterator of Events. pub fn into_iter(self) -> impl Iterator> + FusedIterator { + // Can't impl IntoIter without allocating.and using a generic associated type + // TODO: try harder? let section_iter = self .sections .into_iter()