diff --git a/lrlex/src/lib/ctbuilder.rs b/lrlex/src/lib/ctbuilder.rs index a0d317a75..1d4bb6a43 100644 --- a/lrlex/src/lib/ctbuilder.rs +++ b/lrlex/src/lib/ctbuilder.rs @@ -98,7 +98,7 @@ where regex_options: RegexOptions, } -impl<'a> CTLexerBuilder<'a, DefaultLexerTypes> { +impl CTLexerBuilder<'_, DefaultLexerTypes> { /// Create a new [CTLexerBuilder]. pub fn new() -> Self { CTLexerBuilder::>::new_with_lexemet() diff --git a/lrpar/src/lib/parser.rs b/lrpar/src/lib/parser.rs index d6a1ca241..66a423b2f 100644 --- a/lrpar/src/lib/parser.rs +++ b/lrpar/src/lib/parser.rs @@ -1050,7 +1050,7 @@ pub(crate) mod test { s: &'input str, } - impl<'input> Lexer for SmallLexer<'input> { + impl Lexer for SmallLexer<'_> { fn iter<'a>(&'a self) -> Box> + 'a> { Box::new(self.lexemes.iter().map(|x| Ok(*x))) } diff --git a/lrtable/src/lib/statetable.rs b/lrtable/src/lib/statetable.rs index c809d1637..37fdf269f 100644 --- a/lrtable/src/lib/statetable.rs +++ b/lrtable/src/lib/statetable.rs @@ -503,7 +503,7 @@ pub struct StateActionsIterator<'a, StorageT> { phantom: PhantomData, } -impl<'a, StorageT: 'static + PrimInt + Unsigned> Iterator for StateActionsIterator<'a, StorageT> +impl Iterator for StateActionsIterator<'_, StorageT> where usize: AsPrimitive, { @@ -522,7 +522,7 @@ pub struct CoreReducesIterator<'a, StorageT> { phantom: PhantomData, } -impl<'a, StorageT: 'static + PrimInt + Unsigned> Iterator for CoreReducesIterator<'a, StorageT> +impl Iterator for CoreReducesIterator<'_, StorageT> where usize: AsPrimitive, {