Skip to content

Commit 0b7feac

Browse files
committed
Clean up some unreachable_pub warnings
1 parent 65f1f2e commit 0b7feac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oldtime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ pub struct Duration {
5858
}
5959

6060
/// The minimum possible `Duration`: `i64::MIN` milliseconds.
61-
pub const MIN: Duration = Duration {
61+
pub(crate) const MIN: Duration = Duration {
6262
secs: i64::MIN / MILLIS_PER_SEC - 1,
6363
nanos: NANOS_PER_SEC + (i64::MIN % MILLIS_PER_SEC) as i32 * NANOS_PER_MILLI,
6464
};
6565

6666
/// The maximum possible `Duration`: `i64::MAX` milliseconds.
67-
pub const MAX: Duration = Duration {
67+
pub(crate) const MAX: Duration = Duration {
6868
secs: i64::MAX / MILLIS_PER_SEC,
6969
nanos: (i64::MAX % MILLIS_PER_SEC) as i32 * NANOS_PER_MILLI,
7070
};

0 commit comments

Comments
 (0)