Fix builds.

This commit is contained in:
Stephen Chung
2021-11-28 23:06:33 +08:00
parent 9fa4d60336
commit a3e79c0bd0
6 changed files with 29 additions and 29 deletions

View File

@@ -2241,7 +2241,7 @@ impl Engine {
#[must_use]
pub fn lex<'a>(
&'a self,
input: impl IntoIterator<Item = &'a (AsRef<str> + 'a)>,
input: impl IntoIterator<Item = &'a (impl AsRef<str> + 'a)>,
) -> (TokenIterator<'a>, TokenizerControl) {
self.lex_raw(input, None)
}
@@ -2252,7 +2252,7 @@ impl Engine {
#[must_use]
pub fn lex_with_map<'a>(
&'a self,
input: impl IntoIterator<Item = &'a (AsRef<str> + 'a)>,
input: impl IntoIterator<Item = &'a (impl AsRef<str> + 'a)>,
token_mapper: &'a OnParseTokenCallback,
) -> (TokenIterator<'a>, TokenizerControl) {
self.lex_raw(input, Some(token_mapper))