aboutsummaryrefslogtreecommitdiffstats
path: root/src/content
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-28 16:51:25 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-28 16:51:25 +0200
commit6f61649ac8d08fff85a99172afbf4cd852dda2e6 (patch)
treefecb8227527337613c85ba731d7a01f270330a7f /src/content
parentf7e5fb852dc9c416b9eeb1f0d4f2d51ba5b68456 (diff)
downloadmarkdown-rs-6f61649ac8d08fff85a99172afbf4cd852dda2e6.tar.gz
markdown-rs-6f61649ac8d08fff85a99172afbf4cd852dda2e6.tar.bz2
markdown-rs-6f61649ac8d08fff85a99172afbf4cd852dda2e6.zip
Refactor to use `debug_assert`
Diffstat (limited to 'src/content')
-rw-r--r--src/content/document.rs2
1 files changed, 1 insertions, 1 deletions
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.