Skip to content

Commit e785280

Browse files
UrhengulasVeykril
authored andcommitted
Mark edition field as unused
1 parent 2cf5d88 commit e785280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/parser/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub(crate) struct Parser<'t> {
2626
pos: usize,
2727
events: Vec<Event>,
2828
steps: Cell<u32>,
29-
edition: Edition,
29+
_edition: Edition,
3030
}
3131

3232
#[non_exhaustive]
@@ -40,7 +40,7 @@ static PARSER_STEP_LIMIT: Limit = Limit::new(15_000_000);
4040

4141
impl<'t> Parser<'t> {
4242
pub(super) fn new(inp: &'t Input, edition: Edition) -> Parser<'t> {
43-
Parser { inp, pos: 0, events: Vec::new(), steps: Cell::new(0), edition }
43+
Parser { inp, pos: 0, events: Vec::new(), steps: Cell::new(0), _edition: edition }
4444
}
4545

4646
pub(crate) fn finish(self) -> Vec<Event> {

0 commit comments

Comments
 (0)