Skip to content

Commit

Permalink
Stop implicitly adding &'input to input type
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed May 15, 2022
1 parent aec7952 commit 717ee63
Show file tree
Hide file tree
Showing 48 changed files with 225 additions and 226 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Parse a comma-separated list of numbers surrounded by brackets into a `Vec<u32>`

```rust
peg::parser!{
grammar list_parser() for str {
grammar list_parser() for &str {
rule number() -> u32
= n:$(['0'..='9']+) {? n.parse().or(Err("u32")) }

Expand Down
2 changes: 1 addition & 1 deletion benches/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate test;

use test::Bencher;

peg::parser!(grammar parser() for str {
peg::parser!(grammar parser() for &str {
crate rule expr() = eq()

#[cache]
Expand Down
2 changes: 1 addition & 1 deletion benches/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extern crate test;

use test::Bencher;

peg::parser!(grammar parser() for str {
peg::parser!(grammar parser() for &str {
// JSON grammar (RFC 4627). Note that this only checks for valid JSON and does not build a syntax
// tree.

Expand Down
Loading

0 comments on commit 717ee63

Please sign in to comment.