From 6f61649ac8d08fff85a99172afbf4cd852dda2e6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 28 Jul 2022 16:51:25 +0200 Subject: Refactor to use `debug_assert` --- src/content/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content') diff --git a/src/content/document.rs b/src/content/document.rs index 2924f6c..935c4ef 100644 --- a/src/content/document.rs +++ b/src/content/document.rs @@ -316,7 +316,7 @@ fn container_new_after(tokenizer: &mut Tokenizer, mut info: DocumentInfo) -> Sta } } - assert!(found, "expected to find container token to exit"); + debug_assert!(found, "expected to find container token to exit"); // If we did not continue all existing containers, and there is a new one, // close the flow and those containers. -- cgit