Skip to content

Commit e9d6a02

Browse files
committed
Stop implicitly adding &'input to input type
1 parent 944e99a commit e9d6a02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+241
-243
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Parse a comma-separated list of numbers surrounded by brackets into a `Vec<u32>`
2020

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

benches/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern crate test;
55

66
use test::Bencher;
77

8-
peg::parser!(grammar parser() for str {
8+
peg::parser!(grammar parser() for &str {
99
crate rule expr() = eq()
1010

1111
#[cache]

benches/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern crate test;
55

66
use test::Bencher;
77

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

0 commit comments

Comments
 (0)