Move the indent level for plain list's exit matcher to const fn instead of grabbing from the context.
All checks were successful
rust-test Build rust-test has succeeded
rust-build Build rust-build has succeeded

This made a slight improvement to performance.
This commit is contained in:
Tom Alexander
2023-08-24 20:37:58 -04:00
parent ae3510abd5
commit 03faa7257f
2 changed files with 30 additions and 25 deletions

View File

@@ -112,9 +112,6 @@ pub enum ContextElement<'r, 's> {
ExitMatcherNode(ExitMatcherNode<'r>),
Context(&'r str),
/// Stores the indentation level of the current list item.
ListItem(usize),
/// Stores the name of the greater block.
GreaterBlock(&'s str),