Remove _ prefix to used method.

This commit is contained in:
Ethiraric 2023-11-19 14:52:21 +01:00
parent b1be5686bf
commit df48d59150

View file

@ -468,7 +468,7 @@ impl<T: Iterator<Item = char>> Parser<T> {
| TokenType::DocumentStart, | TokenType::DocumentStart,
) => { ) => {
// explicit document // explicit document
self._explicit_document_start() self.explicit_document_start()
} }
Token(mark, _) if implicit => { Token(mark, _) if implicit => {
self.parser_process_directives()?; self.parser_process_directives()?;
@ -478,7 +478,7 @@ impl<T: Iterator<Item = char>> Parser<T> {
} }
_ => { _ => {
// explicit document // explicit document
self._explicit_document_start() self.explicit_document_start()
} }
} }
} }
@ -504,7 +504,7 @@ impl<T: Iterator<Item = char>> Parser<T> {
Ok(()) Ok(())
} }
fn _explicit_document_start(&mut self) -> ParseResult { fn explicit_document_start(&mut self) -> ParseResult {
self.parser_process_directives()?; self.parser_process_directives()?;
match *self.peek_token()? { match *self.peek_token()? {
Token(mark, TokenType::DocumentStart) => { Token(mark, TokenType::DocumentStart) => {