Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ad36324

Browse files
committed
unconstify methods
1 parent 0a227f3 commit ad36324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ impl Duration {
512512
/// ```
513513
#[stable(feature = "duration_float", since = "1.38.0")]
514514
#[inline]
515-
pub const fn as_secs_f64(&self) -> f64 {
515+
pub fn as_secs_f64(&self) -> f64 {
516516
(self.secs as f64) + (self.nanos as f64) / (NANOS_PER_SEC as f64)
517517
}
518518

@@ -529,7 +529,7 @@ impl Duration {
529529
/// ```
530530
#[stable(feature = "duration_float", since = "1.38.0")]
531531
#[inline]
532-
pub const fn as_secs_f32(&self) -> f32 {
532+
pub fn as_secs_f32(&self) -> f32 {
533533
(self.secs as f32) + (self.nanos as f32) / (NANOS_PER_SEC as f32)
534534
}
535535

0 commit comments

Comments
 (0)