diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-28 16:51:25 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-28 16:51:25 +0200 |
commit | 6f61649ac8d08fff85a99172afbf4cd852dda2e6 (patch) | |
tree | fecb8227527337613c85ba731d7a01f270330a7f /src/util | |
parent | f7e5fb852dc9c416b9eeb1f0d4f2d51ba5b68456 (diff) | |
download | markdown-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.rs | 2 |
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" |