diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-21 16:06:50 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-21 16:06:50 +0200 |
commit | c6f92eaedf197beafef461ee6c2bd067e7160c49 (patch) | |
tree | c919113a51065c5d8126991cde1edf7fd6609e8b /src/content/string.rs | |
parent | bcc4676b84a06af5e38ebaa31f0217cae090be08 (diff) | |
download | markdown-rs-c6f92eaedf197beafef461ee6c2bd067e7160c49.tar.gz markdown-rs-c6f92eaedf197beafef461ee6c2bd067e7160c49.tar.bz2 markdown-rs-c6f92eaedf197beafef461ee6c2bd067e7160c49.zip |
Refactor to improve a bunch of states
* Improve passing stuff around
* Add traits to enums for markers and such
* Fix “life time” stuff I didn’t understand
Diffstat (limited to '')
-rw-r--r-- | src/content/string.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/content/string.rs b/src/content/string.rs index c3e825e..bae2646 100644 --- a/src/content/string.rs +++ b/src/content/string.rs @@ -55,14 +55,6 @@ fn before_data(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { (State::Fn(Box::new(in_data)), None) } } - - // if let Code::None = code { - // (State::Ok, None) - // } else { - // tokenizer.enter(TokenType::Data); - // tokenizer.consume(code); - // (State::Fn(Box::new(in_data)), None) - // } } /// In data. |