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 Nov 13, 2022
1 parent 944e99a commit e9d6a02
Show file tree
Hide file tree
Showing 50 changed files with 241 additions and 243 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

0 comments on commit e9d6a02

Please sign in to comment.