From 79fe341efc4d5e7467ec08cb7d0688b17a9efb05 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 25 Jul 2022 16:27:45 +0200 Subject: Remove no longer needed field in `State::Ok` --- src/construct/list.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/construct/list.rs') diff --git a/src/construct/list.rs b/src/construct/list.rs index ae3fc34..4dfd202 100644 --- a/src/construct/list.rs +++ b/src/construct/list.rs @@ -276,7 +276,7 @@ fn whitespace_after(_tokenizer: &mut Tokenizer, code: Code) -> State { if matches!(code, Code::VirtualSpace | Code::Char('\t' | ' ')) { State::Nok } else { - State::Ok(0) + State::Ok } } @@ -322,7 +322,7 @@ fn after(tokenizer: &mut Tokenizer, _code: Code, blank: bool) -> State { tokenizer.exit(Token::ListItemPrefix); tokenizer.register_resolver_before("list_item".to_string(), Box::new(resolve_list_item)); - State::Ok(0) + State::Ok } } @@ -378,7 +378,7 @@ pub fn not_blank_cont(tokenizer: &mut Tokenizer, code: Code) -> State { /// A state fn to yield [`State::Ok`]. pub fn ok(_tokenizer: &mut Tokenizer, _code: Code) -> State { - State::Ok(0) + State::Ok } /// A state fn to yield [`State::Nok`]. -- cgit