Skip to content

Commit 6a727f4

Browse files
committed
Attempt to fix broken tarpaulin
1 parent 0e4c4b5 commit 6a727f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/slice.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ impl<'a> Position<'a> {
2424
///
2525
/// This function panics if an enter event is given.
2626
/// When `markdown-rs` is used, this function never panics.
27+
#[cfg_attr(tarpaulin, ignore)]
2728
pub fn from_exit_event(events: &'a [Event], index: usize) -> Position<'a> {
2829
let exit = &events[index];
2930
debug_assert_eq!(exit.kind, Kind::Exit, "expected `exit` event");
@@ -117,6 +118,7 @@ impl<'a> Slice<'a> {
117118
/// Turn the slice into a `String`.
118119
///
119120
/// Supports virtual spaces.
121+
#[cfg_attr(tarpaulin, ignore)]
120122
pub fn serialize(&self) -> String {
121123
debug_assert_eq!(self.after, 0, "expected no trailing vs");
122124
// If the above ever starts erroring, handle the same as `self.before`

0 commit comments

Comments
 (0)