We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9979935 commit d2e6a83Copy full SHA for d2e6a83
lrpar/cttests/src/grmtools_section.test
@@ -25,12 +25,12 @@ grammar: |
25
path -> Path<'input>
26
: IDENT {
27
let ident = $lexer.span_str($1.as_ref().unwrap().span());
28
- Path::Ident(&ident)
+ Path::Ident(ident)
29
}
30
| IDENT '::' IDENT {
31
let scope = $lexer.span_str($1.as_ref().unwrap().span());
32
let ident = $lexer.span_str($2.as_ref().unwrap().span());
33
- Path::Scoped(&scope, &ident)
+ Path::Scoped(scope, ident)
34
35
;
36
@@ -59,8 +59,8 @@ grammar: |
59
60
61
comma_opt -> ()
62
- : %empty { () }
63
- | ',' { () }
+ : %empty { }
+ | ',' { }
64
65
%%
66
#![allow(dead_code)]
0 commit comments