diff options
Diffstat (limited to 'src/parse/parser.rs')
| -rw-r--r-- | src/parse/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 63ba4918..98adfba2 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -452,9 +452,9 @@ impl Marker { } /// Wrap all children that do not fulfill the predicate in error nodes. - pub fn filter_children<F>(self, p: &mut Parser, f: F) + pub fn filter_children<F>(self, p: &mut Parser, mut f: F) where - F: Fn(&Green) -> Result<(), &'static str>, + F: FnMut(&Green) -> Result<(), &'static str>, { for child in &mut p.children[self.0 ..] { // Don't expose errors. |
