diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-11 16:11:16 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-11 16:11:16 +0200 |
| commit | cd62792c0aefffe8b0a5c7fc76e95dfa7b86a181 (patch) | |
| tree | 5fdc0b4f3422eb8bc7cdb06fce8829d32ef6c9e3 /src/parse/parser.rs | |
| parent | 938b0af889b8fbe6265695b1b8e54aee338ba87f (diff) | |
Prevent duplicate named arguments and dictionary keys
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. |
