From 79fe341efc4d5e7467ec08cb7d0688b17a9efb05 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 25 Jul 2022 16:27:45 +0200 Subject: Remove no longer needed field in `State::Ok` --- src/content/document.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/content/document.rs') 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(); -- cgit