aboutsummaryrefslogtreecommitdiffstats
path: root/src/content
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 16:06:50 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 16:06:50 +0200
commitc6f92eaedf197beafef461ee6c2bd067e7160c49 (patch)
treec919113a51065c5d8126991cde1edf7fd6609e8b /src/content
parentbcc4676b84a06af5e38ebaa31f0217cae090be08 (diff)
downloadmarkdown-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 'src/content')
-rw-r--r--src/content/string.rs8
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.