Skip to content

Commit d2e6a83

Browse files
committed
Fix clippy
1 parent 9979935 commit d2e6a83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lrpar/cttests/src/grmtools_section.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ grammar: |
2525
path -> Path<'input>
2626
: IDENT {
2727
let ident = $lexer.span_str($1.as_ref().unwrap().span());
28-
Path::Ident(&ident)
28+
Path::Ident(ident)
2929
}
3030
| IDENT '::' IDENT {
3131
let scope = $lexer.span_str($1.as_ref().unwrap().span());
3232
let ident = $lexer.span_str($2.as_ref().unwrap().span());
33-
Path::Scoped(&scope, &ident)
33+
Path::Scoped(scope, ident)
3434
}
3535
;
3636

@@ -59,8 +59,8 @@ grammar: |
5959
;
6060

6161
comma_opt -> ()
62-
: %empty { () }
63-
| ',' { () }
62+
: %empty { }
63+
| ',' { }
6464
;
6565
%%
6666
#![allow(dead_code)]

0 commit comments

Comments
 (0)