We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f1f2e commit 0b7feacCopy full SHA for 0b7feac
src/oldtime.rs
@@ -58,13 +58,13 @@ pub struct Duration {
58
}
59
60
/// The minimum possible `Duration`: `i64::MIN` milliseconds.
61
-pub const MIN: Duration = Duration {
+pub(crate) const MIN: Duration = Duration {
62
secs: i64::MIN / MILLIS_PER_SEC - 1,
63
nanos: NANOS_PER_SEC + (i64::MIN % MILLIS_PER_SEC) as i32 * NANOS_PER_MILLI,
64
};
65
66
/// The maximum possible `Duration`: `i64::MAX` milliseconds.
67
-pub const MAX: Duration = Duration {
+pub(crate) const MAX: Duration = Duration {
68
secs: i64::MAX / MILLIS_PER_SEC,
69
nanos: (i64::MAX % MILLIS_PER_SEC) as i32 * NANOS_PER_MILLI,
70
0 commit comments