Skip to content

Commit ca4877d

Browse files
remove ast
1 parent 5dabbf2 commit ca4877d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

crates/djls-template-ast/src/parser.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,11 @@ use thiserror::Error;
66
pub struct Parser {
77
tokens: TokenStream,
88
current: usize,
9-
ast: Ast,
109
}
1110

1211
impl Parser {
1312
pub fn new(tokens: TokenStream) -> Self {
14-
Parser {
15-
tokens,
16-
current: 0,
17-
ast: Ast::default(),
18-
}
13+
Parser { tokens, current: 0 }
1914
}
2015

2116
pub fn parse(&mut self) -> Result<Ast, ParserError> {

0 commit comments

Comments
 (0)