@@ -38,7 +38,7 @@ impl<Clock: crate::Clock> Instant<Clock> {
38
38
/// type Rep = u32;
39
39
/// const PERIOD: Period = <Period>::new(1, 1_000);
40
40
/// // ...
41
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
41
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
42
42
/// }
43
43
///
44
44
/// assert_eq!(Instant::<Clock>::new(5).duration_since::<Microseconds<u64>>(&Instant::<Clock>::new(3)),
@@ -74,7 +74,7 @@ impl<Clock: crate::Clock> Instant<Clock> {
74
74
/// type Rep = u32;
75
75
/// const PERIOD: Period =<Period>::new(1, 1_000);
76
76
/// // ...
77
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
77
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
78
78
/// }
79
79
///
80
80
/// assert_eq!(Instant::<Clock>::new(5).duration_until::<Microseconds<u64>>(&Instant::<Clock>::new(7)),
@@ -138,7 +138,7 @@ impl<Clock: crate::Clock> PartialOrd for Instant<Clock> {
138
138
/// type Rep = u32;
139
139
/// const PERIOD: Period =<Period>::new(1, 1_000);
140
140
/// // ...
141
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
141
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
142
142
/// }
143
143
///
144
144
/// assert!(Instant::<Clock>::new(5) > Instant::<Clock>::new(3));
@@ -178,7 +178,7 @@ where
178
178
/// type Rep = u32;
179
179
/// const PERIOD: Period =<Period>::new(1, 1_000);
180
180
/// // ...
181
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
181
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
182
182
/// }
183
183
///
184
184
/// Instant::<Clock>::new(1) + Seconds(u32::MAX);
@@ -194,7 +194,7 @@ where
194
194
/// type Rep = u32;
195
195
/// const PERIOD: Period =<Period>::new(1, 1_000);
196
196
/// // ...
197
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
197
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
198
198
/// }
199
199
///
200
200
/// let _ = Instant::<Clock>::new(0) + Milliseconds(i32::MAX as u32 + 1);
@@ -211,7 +211,7 @@ where
211
211
/// type Rep = u32;
212
212
/// const PERIOD: Period =<Period>::new(1, 1_000);
213
213
/// // ...
214
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
214
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
215
215
/// }
216
216
///
217
217
/// assert_eq!(Instant::<Clock>::new(1) + Seconds(3_u32), Instant::<Clock>::new(3_001));
@@ -251,7 +251,7 @@ where
251
251
/// type Rep = u32;
252
252
/// const PERIOD: Period =<Period>::new(1, 1_000);
253
253
/// // ...
254
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
254
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
255
255
/// }
256
256
///
257
257
/// Instant::<Clock>::new(1) - Seconds(u32::MAX);
@@ -267,7 +267,7 @@ where
267
267
/// type Rep = u32;
268
268
/// const PERIOD: Period = <Period>::new(1, 1_000);
269
269
/// // ...
270
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
270
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
271
271
/// }
272
272
///
273
273
/// let _ = Instant::<Clock>::new(u32::MAX) - Milliseconds(i32::MAX as u32 + 1);
@@ -284,7 +284,7 @@ where
284
284
/// type Rep = u32;
285
285
/// const PERIOD: Period =<Period>::new(1, 1_000);
286
286
/// // ...
287
- /// # fn now(&mut self) -> Instant<Self> {unimplemented!()}
287
+ /// # fn now(&self) -> Instant<Self> {unimplemented!()}
288
288
/// }
289
289
///
290
290
/// assert_eq!(Instant::<Clock>::new(800) - Milliseconds(700_u32), Instant::<Clock>::new(100));
@@ -315,7 +315,7 @@ mod tests {
315
315
type Rep = u32 ;
316
316
const PERIOD : Period = <Period >:: new ( 1 , 1_000 ) ;
317
317
318
- fn now ( & mut self ) -> Instant < Self > {
318
+ fn now ( & self ) -> Instant < Self > {
319
319
unimplemented ! ( )
320
320
}
321
321
}
0 commit comments