Skip to content

Commit 6907b54

Browse files
authored
Merge pull request #479 from ltratt/clippy_fixes
Various automatic Clippy fixes.
2 parents 9a2ef04 + 00e9974 commit 6907b54

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lrlex/src/lib/ctbuilder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ where
9898
regex_options: RegexOptions,
9999
}
100100

101-
impl<'a> CTLexerBuilder<'a, DefaultLexerTypes<u32>> {
101+
impl CTLexerBuilder<'_, DefaultLexerTypes<u32>> {
102102
/// Create a new [CTLexerBuilder].
103103
pub fn new() -> Self {
104104
CTLexerBuilder::<DefaultLexerTypes<u32>>::new_with_lexemet()

lrpar/src/lib/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ pub(crate) mod test {
10501050
s: &'input str,
10511051
}
10521052

1053-
impl<'input> Lexer<TestLexerTypes> for SmallLexer<'input> {
1053+
impl Lexer<TestLexerTypes> for SmallLexer<'_> {
10541054
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = Result<TestLexeme, TestLexError>> + 'a> {
10551055
Box::new(self.lexemes.iter().map(|x| Ok(*x)))
10561056
}

lrtable/src/lib/statetable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ pub struct StateActionsIterator<'a, StorageT> {
503503
phantom: PhantomData<StorageT>,
504504
}
505505

506-
impl<'a, StorageT: 'static + PrimInt + Unsigned> Iterator for StateActionsIterator<'a, StorageT>
506+
impl<StorageT: 'static + PrimInt + Unsigned> Iterator for StateActionsIterator<'_, StorageT>
507507
where
508508
usize: AsPrimitive<StorageT>,
509509
{
@@ -522,7 +522,7 @@ pub struct CoreReducesIterator<'a, StorageT> {
522522
phantom: PhantomData<StorageT>,
523523
}
524524

525-
impl<'a, StorageT: 'static + PrimInt + Unsigned> Iterator for CoreReducesIterator<'a, StorageT>
525+
impl<StorageT: 'static + PrimInt + Unsigned> Iterator for CoreReducesIterator<'_, StorageT>
526526
where
527527
usize: AsPrimitive<StorageT>,
528528
{

0 commit comments

Comments
 (0)