Skip to content

Commit

Permalink
Various automatic Clippy fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltratt committed Dec 21, 2024
1 parent 270bdb2 commit 00e9974
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lrlex/src/lib/ctbuilder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ where
regex_options: RegexOptions,
}

impl<'a> CTLexerBuilder<'a, DefaultLexerTypes<u32>> {
impl CTLexerBuilder<'_, DefaultLexerTypes<u32>> {
/// Create a new [CTLexerBuilder].
pub fn new() -> Self {
CTLexerBuilder::<DefaultLexerTypes<u32>>::new_with_lexemet()
Expand Down
2 changes: 1 addition & 1 deletion lrpar/src/lib/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ pub(crate) mod test {
s: &'input str,
}

impl<'input> Lexer<TestLexerTypes> for SmallLexer<'input> {
impl Lexer<TestLexerTypes> for SmallLexer<'_> {
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = Result<TestLexeme, TestLexError>> + 'a> {
Box::new(self.lexemes.iter().map(|x| Ok(*x)))
}
Expand Down
4 changes: 2 additions & 2 deletions lrtable/src/lib/statetable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ pub struct StateActionsIterator<'a, StorageT> {
phantom: PhantomData<StorageT>,
}

impl<'a, StorageT: 'static + PrimInt + Unsigned> Iterator for StateActionsIterator<'a, StorageT>
impl<StorageT: 'static + PrimInt + Unsigned> Iterator for StateActionsIterator<'_, StorageT>
where
usize: AsPrimitive<StorageT>,
{
Expand All @@ -522,7 +522,7 @@ pub struct CoreReducesIterator<'a, StorageT> {
phantom: PhantomData<StorageT>,
}

impl<'a, StorageT: 'static + PrimInt + Unsigned> Iterator for CoreReducesIterator<'a, StorageT>
impl<StorageT: 'static + PrimInt + Unsigned> Iterator for CoreReducesIterator<'_, StorageT>
where
usize: AsPrimitive<StorageT>,
{
Expand Down

0 comments on commit 00e9974

Please sign in to comment.