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.
#[inline(never)]
1 parent b278a26 commit 6d264d5Copy full SHA for 6d264d5
1 file changed
time/src/duration.rs
@@ -582,7 +582,7 @@ impl Duration {
582
/// assert_eq!(Duration::seconds_f64(0.5), 0.5.seconds());
583
/// assert_eq!(Duration::seconds_f64(-0.5), (-0.5).seconds());
584
/// ```
585
- #[inline(never)]
+ #[inline]
586
#[track_caller]
587
pub const fn seconds_f64(seconds: f64) -> Self {
588
match Self::try_seconds_f64(seconds) {
@@ -639,7 +639,7 @@ impl Duration {
639
/// Duration::MAX,
640
/// );
641
642
643
pub const fn saturating_seconds_f64(seconds: f64) -> Self {
644
645
Ok(duration) => duration,
0 commit comments