aboutsummaryrefslogtreecommitdiffstats
path: root/src/subtokenize.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 13:14:07 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-21 13:14:07 +0200
commitbcc4676b84a06af5e38ebaa31f0217cae090be08 (patch)
tree4b823b2bb9d5d298a2f7f06c40dccd55e193f10e /src/subtokenize.rs
parentf99d131ec3ab60956344d001bcd40244343c241b (diff)
downloadmarkdown-rs-bcc4676b84a06af5e38ebaa31f0217cae090be08.tar.gz
markdown-rs-bcc4676b84a06af5e38ebaa31f0217cae090be08.tar.bz2
markdown-rs-bcc4676b84a06af5e38ebaa31f0217cae090be08.zip
Update todo list
Diffstat (limited to 'src/subtokenize.rs')
-rw-r--r--src/subtokenize.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/subtokenize.rs b/src/subtokenize.rs
index 0623a37..1188c61 100644
--- a/src/subtokenize.rs
+++ b/src/subtokenize.rs
@@ -66,14 +66,7 @@ pub fn subtokenize(events: Vec<Event>, codes: &[Code]) -> (Vec<Event>, bool) {
};
result = tokenizer.feed(span::codes(codes, &span), func, enter.next == None);
-
- if let Some(ref x) = result.1 {
- if !x.is_empty() {
- // To do: handle?
- unreachable!("subtokenize:remainder {:?}", x);
- }
- }
-
+ assert!(result.1.is_none(), "expected no remainder");
index_opt = enter.next;
}