Skip to content

Commit

Permalink
Mark edition field as unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas authored and Veykril committed Apr 14, 2024
1 parent 2cf5d88 commit e785280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/parser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(crate) struct Parser<'t> {
pos: usize,
events: Vec<Event>,
steps: Cell<u32>,
edition: Edition,
_edition: Edition,
}

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

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

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

0 comments on commit e785280

Please sign in to comment.