Skip to content

Commit a7412e9

Browse files
committed
Update to edition 2021
1 parent e348b20 commit a7412e9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "A simple Parsing Expression Grammar (PEG) parser generator."
1111
keywords = ["peg", "parser", "parsing", "grammar"]
1212
categories = ["parsing"]
1313
readme = "README.md"
14-
edition = "2018"
14+
edition = "2021"
1515
rust-version = "1.68.0" # if changed, also update .github/workflows/rust.yml
1616

1717
[dependencies]

peg-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [ "Kevin Mehall <[email protected]>" ]
55
license = "MIT"
66
repository = "https://github.com/kevinmehall/rust-peg"
77
description = "Procedural macros for rust-peg. To use rust-peg, see the `peg` crate."
8-
edition = "2018"
8+
edition = "2021"
99

1010
[dependencies]
1111
quote = "1.0"

peg-macros/translate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,8 @@ fn compile_expr(context: &Context, e: &SpannedExpr, result_used: bool) -> TokenS
968968
err_state: &mut ::peg::error::ErrorState,
969969
min_prec: i32,
970970
lpos: usize,
971-
prefix_atom: &Fn(usize, &mut S, &mut ::peg::error::ErrorState, &Fn(usize, i32, &mut S, &mut ::peg::error::ErrorState) -> ::peg::RuleResult<T>) -> ::peg::RuleResult<T>,
972-
level_code: &Fn(usize, usize, i32, T, &mut S, &mut ::peg::error::ErrorState, &Fn(usize, i32, &mut S, &mut ::peg::error::ErrorState) -> ::peg::RuleResult<T>) -> (T, ::peg::RuleResult<()>),
971+
prefix_atom: &dyn Fn(usize, &mut S, &mut ::peg::error::ErrorState, &dyn Fn(usize, i32, &mut S, &mut ::peg::error::ErrorState) -> ::peg::RuleResult<T>) -> ::peg::RuleResult<T>,
972+
level_code: &dyn Fn(usize, usize, i32, T, &mut S, &mut ::peg::error::ErrorState, &dyn Fn(usize, i32, &mut S, &mut ::peg::error::ErrorState) -> ::peg::RuleResult<T>) -> (T, ::peg::RuleResult<()>),
973973
) -> ::peg::RuleResult<T> {
974974
let initial = {
975975
prefix_atom(lpos, state, err_state, &|pos, min_prec, state, err_state| {

peg-runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = [ "Kevin Mehall <[email protected]>" ]
55
license = "MIT"
66
repository = "https://github.com/kevinmehall/rust-peg"
77
description = "Runtime support for rust-peg grammars. To use rust-peg, see the `peg` crate."
8-
edition = "2018"
8+
edition = "2021"
99

1010
[lib]
1111
path = "lib.rs"

0 commit comments

Comments
 (0)