diff options
Diffstat (limited to 'src/construct/code_text.rs')
-rw-r--r-- | src/construct/code_text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/code_text.rs b/src/construct/code_text.rs index e68d489..451ef45 100644 --- a/src/construct/code_text.rs +++ b/src/construct/code_text.rs @@ -190,7 +190,7 @@ fn sequence_close(tokenizer: &mut Tokenizer, code: Code, size_open: usize, size: _ if size_open == size => { tokenizer.exit(Token::CodeTextSequence); tokenizer.exit(Token::CodeText); - State::Ok(if matches!(code, Code::None) { 0 } else { 1 }) + State::Ok(0) } _ => { let index = tokenizer.events.len(); |