Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/parser.rs')
-rw-r--r--crates/parser/src/parser.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/parser/src/parser.rs b/crates/parser/src/parser.rs
index df53e13f6e..eb8f761a91 100644
--- a/crates/parser/src/parser.rs
+++ b/crates/parser/src/parser.rs
@@ -40,13 +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 }
}
pub(crate) fn finish(self) -> Vec<Event> {