Skip to content

Commit fe50a19

Browse files
committed
make assert_8th_bit_invariant private
1 parent 5fdfcd5 commit fe50a19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/weekdays.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ impl Weekdays {
374374
}
375375

376376
/// Panics if the 8-th bit of `self` is not 0.
377-
pub fn assert_8th_bit_invariant(self) {
377+
#[cfg(test)]
378+
fn assert_8th_bit_invariant(self) {
378379
assert!(self.0 & 0b1000_0000 == 0, "the 8-th bit of {self:?} is not 0");
379380
}
380381
}

0 commit comments

Comments
 (0)