From 0d9c4611922535533746d1a86f10ef4e701c950e Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 11 Aug 2022 17:26:17 +0200 Subject: Refactor attempts to remove unneeded state name --- src/construct/blank_line.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/construct/blank_line.rs') diff --git a/src/construct/blank_line.rs b/src/construct/blank_line.rs index 2adc7a4..eeef637 100644 --- a/src/construct/blank_line.rs +++ b/src/construct/blank_line.rs @@ -47,12 +47,12 @@ use crate::tokenizer::Tokenizer; /// ^ /// ``` pub fn start(tokenizer: &mut Tokenizer) -> State { - let name = space_or_tab(tokenizer); tokenizer.attempt( - name, State::Next(StateName::BlankLineAfter), State::Next(StateName::BlankLineAfter), - ) + ); + + State::Retry(space_or_tab(tokenizer)) } /// After zero or more spaces or tabs, before a line ending or EOF. -- cgit