Skip to content

Commit 94da760

Browse files
committed
improve conditional compilation w/o relying on cfg_if
1 parent 9ae8cbb commit 94da760

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ impl<H, T> HeaderVec<H, T> {
136136
/// Get the length of the vector from a mutable reference. When one has a `&mut
137137
/// HeaderVec`, this is the method is always exact and can be slightly faster than the non
138138
/// mutable `len()`.
139+
#[mutants::skip]
139140
#[inline(always)]
140141
pub fn len_exact(&mut self) -> usize {
141142
#[cfg(feature = "atomic_append")]
@@ -151,6 +152,7 @@ impl<H, T> HeaderVec<H, T> {
151152
/// This gives the length of the `HeaderVec`. This is the non synchronized variant may
152153
/// produce racy results in case another thread atomically appended to
153154
/// `&self`. Nevertheless it is always safe to use.
155+
#[mutants::skip]
154156
#[inline(always)]
155157
pub fn len(&self) -> usize {
156158
#[cfg(feature = "atomic_append")]

0 commit comments

Comments
 (0)