diff options
Diffstat (limited to 'src/parse/scanner.rs')
| -rw-r--r-- | src/parse/scanner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/scanner.rs b/src/parse/scanner.rs index 38c8736f..b7107979 100644 --- a/src/parse/scanner.rs +++ b/src/parse/scanner.rs @@ -100,7 +100,7 @@ impl<'s> Scanner<'s> { /// Checks whether the next char fulfills a condition. /// /// Returns `false` if there is no next char. - pub fn check(&self, f: impl FnMut(char) -> bool) -> bool { + pub fn check(&self, f: impl FnOnce(char) -> bool) -> bool { self.peek().map(f).unwrap_or(false) } |
