File tree 1 file changed +2
-8
lines changed 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,6 @@ pub mod os;
93
93
pub use driver:: block_on;
94
94
pub use reactor:: { Readable , ReadableOwned , Writable , WritableOwned } ;
95
95
96
- /// Use `Duration::MAX` once `duration_constants` are stabilized.
97
- fn duration_max ( ) -> Duration {
98
- Duration :: new ( std:: u64:: MAX , 1_000_000_000 - 1 )
99
- }
100
-
101
96
/// A future or stream that emits timed events.
102
97
///
103
98
/// Timers are futures that output a single [`Instant`] when they fire.
@@ -195,7 +190,7 @@ impl Timer {
195
190
Timer {
196
191
id_and_waker : None ,
197
192
when : None ,
198
- period : duration_max ( ) ,
193
+ period : Duration :: MAX ,
199
194
}
200
195
}
201
196
@@ -232,8 +227,7 @@ impl Timer {
232
227
/// # });
233
228
/// ```
234
229
pub fn at ( instant : Instant ) -> Timer {
235
- // Use Duration::MAX once duration_constants are stabilized.
236
- Timer :: interval_at ( instant, duration_max ( ) )
230
+ Timer :: interval_at ( instant, Duration :: MAX )
237
231
}
238
232
239
233
/// Creates a timer that emits events periodically.
You can’t perform that action at this time.
0 commit comments