From 6a727f4d67bef60f4aed4d3cbccd42226a338843 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 14 Oct 2022 12:20:08 +0200 Subject: Attempt to fix broken tarpaulin --- src/util/slice.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/util/slice.rs b/src/util/slice.rs index 869ecca..ab3064a 100644 --- a/src/util/slice.rs +++ b/src/util/slice.rs @@ -24,6 +24,7 @@ impl<'a> Position<'a> { /// /// This function panics if an enter event is given. /// When `markdown-rs` is used, this function never panics. + #[cfg_attr(tarpaulin, ignore)] pub fn from_exit_event(events: &'a [Event], index: usize) -> Position<'a> { let exit = &events[index]; debug_assert_eq!(exit.kind, Kind::Exit, "expected `exit` event"); @@ -117,6 +118,7 @@ impl<'a> Slice<'a> { /// Turn the slice into a `String`. /// /// Supports virtual spaces. + #[cfg_attr(tarpaulin, ignore)] pub fn serialize(&self) -> String { debug_assert_eq!(self.after, 0, "expected no trailing vs"); // If the above ever starts erroring, handle the same as `self.before` -- cgit