Skip to content

Commit 227b6f8

Browse files
committed
Gate methods as necessary
1 parent 8060100 commit 227b6f8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

time/src/duration.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,7 @@ impl Duration {
906906
}
907907

908908
/// Get the number of nanoseconds past the number of whole seconds.
909+
#[cfg(feature = "quickcheck")]
909910
pub(crate) const fn subsec_nanoseconds_ranged(self) -> Nanoseconds {
910911
self.nanoseconds
911912
}

time/src/time.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ impl Time {
375375
}
376376

377377
/// Get the clock hour, minute, second, and nanosecond.
378+
#[cfg(feature = "quickcheck")]
378379
pub(crate) const fn as_hms_nano_ranged(self) -> (Hours, Minutes, Seconds, Nanoseconds) {
379380
(self.hour, self.minute, self.second, self.nanosecond)
380381
}

time/src/utc_offset.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ impl UtcOffset {
202202
/// assert_eq!(offset!(+1:02:03).as_hms(), (1, 2, 3));
203203
/// assert_eq!(offset!(-1:02:03).as_hms(), (-1, -2, -3));
204204
/// ```
205+
#[cfg(feature = "quickcheck")]
205206
pub(crate) const fn as_hms_ranged(self) -> (Hours, Minutes, Seconds) {
206207
(self.hours, self.minutes, self.seconds)
207208
}

0 commit comments

Comments
 (0)