aboutsummaryrefslogtreecommitdiffstats
path: root/src/content/document.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-25 16:27:45 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-25 16:27:45 +0200
commit79fe341efc4d5e7467ec08cb7d0688b17a9efb05 (patch)
tree041c6fdf5821d27b8510005f847a3bf4488a3bf6 /src/content/document.rs
parentca56f2742d8719358d2046fbdee4f1087add0568 (diff)
downloadmarkdown-rs-79fe341efc4d5e7467ec08cb7d0688b17a9efb05.tar.gz
markdown-rs-79fe341efc4d5e7467ec08cb7d0688b17a9efb05.tar.bz2
markdown-rs-79fe341efc4d5e7467ec08cb7d0688b17a9efb05.zip
Remove no longer needed field in `State::Ok`
Diffstat (limited to '')
-rw-r--r--src/content/document.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/content/document.rs b/src/content/document.rs
index 29aaa84..d3159d3 100644
--- a/src/content/document.rs
+++ b/src/content/document.rs
@@ -383,9 +383,7 @@ fn flow_end(tokenizer: &mut Tokenizer, code: Code, mut info: DocumentInfo, resul
info.interrupt_before = tokenizer.interrupt;
match result {
- State::Ok(back) => {
- assert_eq!(back, 0);
-
+ State::Ok => {
if !info.stack.is_empty() {
info.continued = 0;
info = exit_containers(tokenizer, info, &Phase::Eof);
@@ -417,7 +415,7 @@ fn exit_containers(
let next = info.next;
info.next = Box::new(flow); // This is weird but Rust needs a function there.
let result = tokenizer.flush(next);
- assert!(matches!(result, State::Ok(0)));
+ assert!(matches!(result, State::Ok));
if *phase == Phase::Prefix {
info.index = tokenizer.events.len();