aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
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/util
parentf7e5fb852dc9c416b9eeb1f0d4f2d51ba5b68456 (diff)
downloadmarkdown-rs-6f61649ac8d08fff85a99172afbf4cd852dda2e6.tar.gz
markdown-rs-6f61649ac8d08fff85a99172afbf4cd852dda2e6.tar.bz2
markdown-rs-6f61649ac8d08fff85a99172afbf4cd852dda2e6.zip
Refactor to use `debug_assert`
Diffstat (limited to '')
-rw-r--r--src/util/slice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/slice.rs b/src/util/slice.rs
index 2134069..14fd527 100644
--- a/src/util/slice.rs
+++ b/src/util/slice.rs
@@ -22,7 +22,7 @@ impl<'a> Position<'a> {
/// When `micromark` is used, this function never panics.
pub fn from_exit_event(events: &'a [Event], index: usize) -> Position<'a> {
let exit = &events[index];
- assert_eq!(
+ debug_assert_eq!(
exit.event_type,
EventType::Exit,
"expected `from_exit_event` to be called on `exit` event"